Hi,
I would like to order by team alphabetically. Previous post have mentioned using a plugin to order the team however my preference is to override it in the child theme.
e.g Override the parent theme ‘/swift-framework/page-builder/builder/shortcodes/team.php’ with a version in the child theme containing:
Parent:
$team_args=array(
‘post_type’ => ‘team’,
‘post_status’ => ‘publish’,
‘paged’ => $paged,
‘team-category’ => $category_slug,
‘posts_per_page’ => $item_count,
‘ignore_sticky_posts’=> 1
);
Child:
$team_args=array(
‘post_type’ => ‘team’,
‘post_status’ => ‘publish’,
‘paged’ => $paged,
‘team-category’ => $category_slug,
‘posts_per_page’ => $item_count,
‘ignore_sticky_posts’=> 1
‘orderby’ => ‘name’,
‘order’ => ‘ASC’
);
I’m hesitant to make the change in the parent theme as it would get overridden when updating to a new version of theme.
Is there a way to order the Team alphabetically by overriding the team.php ‘content’ function in a child theme?
Thanks.