Ordering a loop by category (or similar tagging method)
I am trying to reorder my global and/or main query so that it reorders all posts by the categories (slugs) they are in. Each post is attached to only one category, because I am trying to use that as a navigation element. On the homepage, all Cat1 post excerpts are displayed, then Cat2, Cat3. If easier I can also try to create custom post meta categories, and order my posts that way.
I also need pagination to sync, so when clicking on a single post, the previous/next links follow the same order as the homepage loop. I would really like the prev/next to work from one category to another, not just be cat specific. In other words, the next link goes to Cat3 if at the last post in Cat2, or vice versa for previous link.
Does your My Posts Order wordpress plugin give me that ability to adjust my loop as I have described? What code snippets should I use to make that happen if so? I just need to adjust the order of my query, I don’t need a sidebar of links.
Thanks sincerely for your time and help!
- The topic ‘Ordering a loop by category (or similar tagging method)’ is closed to new replies.