WordPress.org

Ready to get started?Download WordPress

Forums

My Post Order
Order some posts in category, but still show all (4 posts)

  1. Ryan Cowles
    Member
    Posted 1 year ago #

    I was wondering if it would be possible to order some posts in a category -- i.e., order the first 10 posts in Category X. And on the Category X archive page, have those first 10 posts show in their order, followed by the remaining unordered posts in the category.

    http://wordpress.org/extend/plugins/my-posts-order/

  2. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    I'm also not sure how this can be achived. Give me some time to think over it and get back to you.

  3. Ryan Cowles
    Member
    Posted 1 year ago #

    I was trying to do this awhile back, and had to put it on the back burner. I got some help over at the WordPress Stack Exchange.

    What it really comes down to is the fact that query_posts() does an INNER JOIN between the wp_posts and wp_postmeta table. So, you either need to filter get_meta_sql or run two loops. Hope this helps!

  4. Kapil Chugh
    Member
    Plugin Author

    Posted 1 year ago #

    If I run two loops that will create problem in paging.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.