Re-Ordering Staff Page
URL to the page in question:
-
The staff order plugin never works because the reorder drop down did not appear under the staff page. But you gave the following code to another member and just curious to know if this is applicable to the foundation theme since you include the name of the member in the call function:
// Adds order to posts before the query is run
function sarah_pre_posts( $query ) {
if ( is_tax( ‘sponsor-group’ ) ) {
// displays in post order
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘orderby’, ‘menu_order’ );
return;
}
if ( is_tax( ‘staff-group’ ) ) {
// displays in post order
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘orderby’, ‘menu_order’ );
return;
}
}
add_action( ‘pre_get_posts’, ‘sarah_pre_posts’, 1 );
Please confirm is this can be used in the foundation also.
Sorry and never mind. There is another post here where you asked to set order in the attributes and it works. Thanks and sorry for taking your time.
You can also set the order using a different plugin called Simple Page Ordering. It’s a bit newer plugin that lets you reorder the staff and other posts without requiring a separate screen.
- The topic ‘Re-Ordering Staff Page’ is closed to new replies.