• My site (https://wordpressstudios.com) is just a gallery site with three areas for posts: gallery, featured and asides. “Gallery” shows posts as “posters” and includes many different categories where “Featured” and “Asides” only show one category.

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if (in_category('Asides') && is_home() ) continue; ?>
    <?php if (in_category('Featured') && is_home() ) continue; ?>

    I use this in my index.html file to get the gallery (posters) to show up and EXCLUDE the Asides and Featured (articles) categories.

    THE PROBLEM: I have WP set up to display 12 posts on the home page. Every time I post to the category Featured or Asides, it hides those posts (which is correct) from the “Gallery” section but still seems to count them as one of the 12 posts. I end up with only 5 posts in the “Gallery” section where I want 12. I increased the BLOG PAGES SHOW AT MOST setting in the admin area to 21 with no change in my home page.

    Anyone understand what I’m trying to get at? Help?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HOW: Display certain categories, problem’ is closed to new replies.