• I am currently having some issues with the alphabetical orderby argument on WP_Query. It is alphabetizing the posts first and then returning 4 posts in the posts_per_page argument. My understanding was I could query the 4 latest posts and then have it alphabetical order them on output.

    $args = array(
        'cat' => 89,
        'posts_per_page' => 4,
        'order' => 'ASC',
        'orderby' => 'title'
    );

    To reiterate my goal is to query the 4 latest posts from a category and then display them in alphabetical order.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WP_Query Alphabetical Issues’ is closed to new replies.