0

I want to get all the data by wp_query only the first letter of title specific alphabet 'A'.

My code will be like:

 $the_query = new WP_Query( array(
         'posts_per_page'=>10,                                                                           
         'post_type'=>'trade-name',
         'orderby'=> 'title',
         'starts_with' => 'A',
         'order'   => 'ASC',
'paged' => get_query_var('paged') ? get_query_var('paged') : 1) 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.