Re-Ordering Staff Page

Support Area Forums Foundation Re-Ordering Staff Page

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question:
  • Author
    Posts
  • #10597
    ancd
    Participant

    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.

    #10598
    ancd
    Participant

    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.

    #10599
    Bill Robbins
    Moderator

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Re-Ordering Staff Page’ is closed to new replies.