WordPress.org

Ready to get started?Download WordPress

Forums

query_posts doesn't order by title (1 post)

  1. tommix
    Member
    Posted 2 years ago #

    I'm using thos code, and still posts are ordered by title! why?

    query_posts( array(
        'post_type'      => 'page',
        'posts_per_page' => -1,
        'orderby'        => 'title',
        'order'          => 'ASC'
    ) );

Topic Closed

This topic has been closed to new replies.

About this Topic