I have been trying to figure this out and I am stumped. Any thoughts would be appreciated.
On this page: http://urlgone.com/3f6ff6/
The mobile version shows the items in the correct order, but the desktop version doesn’t.
The page shows the items in alphabetical order based on the title except for a couple items. The posts “Judson” and “Jesse” are out of order. Also “Lauren” should be before “Lisa”. There are also a couple more on page 2. I am using the masonry output so I was wondering if that was the issue.
I have this as my code:
// Sort Attorneys on Title // ============================================================================= function sort_attorney_posts( $query ){ if ( is_post_type_archive( 'attorneys' ) && $query->is_main_query() ) { $query->set( 'orderby', 'title' ); $query->set( 'order', 'ASC' ); } } add_action( 'pre_get_posts', 'sort_attorney_posts', 1 );
Attorney CPT attributes are:
has_archive, title, editor, thumbnail, excerpt, custom fields, revisions
I have flushed permalinks (several times).

