WordPress.org

Support

Support » How-To and Troubleshooting » Loop Problem When Excluding Category

Loop Problem When Excluding Category

  • I’m trying to make a Loop that will display the five latest posts that don’t belong to a certain category, let’s call it Vacations. A post usually belongs to several categories, but if it also belongs to Vacations I don’t want it displayed. However, all the examples I’ve tried from the Codex grab the five latest posts and then sort out that category. Since most posts do belong to Vacations, very few posts are displayed. Is there a way to sort out Vacations and than grab the five latest posts?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Loop Problem When Excluding Category’ is closed to new replies.
Skip to toolbar