TransWikia.com

Order posts alphabetically with numbers but some of the posts has numbers in the title

WordPress Development Asked by kelvin ramirez on November 16, 2021

I have this query:

 $args = array(  

    'post_type' => 'alerts',
    'post_status' => 'publish',
    'posts_per_page' => -1, 
    'orderby' => 'post_title', 
    'order' => 'ASC',
);

$alerts_loop = new WP_Query( $args ); 

The problem is that the order breaks in certain point. look at the imagen any ideas why it breaks. I have used:

'orderby' => 'title',
'suppress_filters' => true,
'ignore_sticky_posts' => true

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP