Exclude Category - Leaves Blank (4 posts)

  1. Harvey
    Posted 10 years ago #

    Hello everyone,

    I tried using this method to exclude a particular category from my index.php loop.


    The exclude works fine. However, my site (www.otsumamimusic.com) has the front page organized in a horizontal table. When I use this method to exclude the category, the excluded location is shown as a giant BLANK spot. Like an empty table cell.

    Is there anyway I can make it skip that category item, but fill that location, where the post should have been, with the next post inline, instead of leaving a blank?

    I have put the index.php file that I am using here, for your referenence. I think it might help to see the LOOP integrated table I am talking about.


    Any and all help appreciated folks!

    - Harvey

  2. Harvey
    Posted 10 years ago #

    Does this seem impossible with the table set up I have? I any ideas on any other way this could possibly be done?

    Thanks for any help!

  3. sovietfunk
    Posted 10 years ago #

    I have the same problem with wp 2.0.2. I have this just inside the loop:

    if (in_category('3') && is_home() ) continue;

    Which does exclude category three, but pushes the other content, which is generally older than cat 3 stuff, over to the next page. So i have to click "Next" to see any content at all...


  4. vegardjo
    Posted 10 years ago #

    Hi, I had a similar problem and managed to solve it with this method:


Topic Closed

This topic has been closed to new replies.

About this Topic