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(
         '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.