WordPress.org

Ready to get started?Download WordPress

Forums

Simple Custom Post Type Archives
Sort Post by Title in custom post type Archive ? (1 post)

  1. Wiki Chaves
    Member
    Posted 3 years ago #

    Hi,

    I've used this plugin to create an archive page, worked great ! but I'm trying to sort the posts (hotel post type) by title.

    I've tried

    $posts = query_posts($query_string .
    '&orderby=title&order=asc');

    but it shows me all the posts instead my post_type=hotel

    Any idea ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic