• I know you can exclude posts from certain categories from being displayed, but the category I am excluding has far too many posts so it’s destroying my page load time. What code can I use instead to just display posts from certain categories.

Viewing 1 replies (of 1 total)
  • Sounds like a job for category lists.

    At its simplest, you could create two categories called ‘include’ and ‘exclude’, or whatever, and allocate all your posts to one of them. Then you can replace your blog page—which includes everything—with a category list of posts in the category ‘include’ (or whatever you called it).

    Of course, it means going through all your posts to allocate them to one category or another. There’s probably a way of doing that in SQL if you’re familiar enough with WP’s database structure for categories.

    HTH

    PAE

Viewing 1 replies (of 1 total)

The topic ‘Display posts from certain categories only?’ is closed to new replies.