WordPress.org

Ready to get started?Download WordPress

Forums

HOW: Display certain categories, problem (6 posts)

  1. jayrunquist
    Member
    Posted 6 years ago #

    My site (http://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?

  2. Kalessin
    Member
    Posted 6 years ago #

  3. jayrunquist
    Member
    Posted 6 years ago #

    Ok, would you help if the URL is WPFoundation.com? ;-)

  4. Kalessin
    Member
    Posted 6 years ago #

    No; I have no idea what is causing the issue you describe. I already offered you all the help I can.

  5. jayrunquist
    Member
    Posted 6 years ago #

    LOL

    I appreciate the heads up on the domain issue (I'm fixing it now), but that really has nothing to do with my original issue. Thanks for reading about it though.

  6. jayrunquist
    Member
    Posted 6 years ago #

    Now I wish I could change my entry as the site in question is WPFoundations.com!!!! I really need to figure this one out soon! Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic