WordPress.org

Ready to get started?Download WordPress

Forums

Exclude Category - Leaves Blank (4 posts)

  1. Harvey
    Member
    Posted 8 years ago #

    Hello everyone,

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

    http://codex.wordpress.org/The_Loop#Exclude_Posts_From_Some_Category

    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.

    http://www.japannewbie.com/files/index.txt

    Any and all help appreciated folks!

    - Harvey

  2. Harvey
    Member
    Posted 8 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
    Member
    Posted 8 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...

    kevin

  4. vegardjo
    Member
    Posted 8 years ago #

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

    http://www.cre8d-design.com/blog/2006/03/09/wordpress-tutorial-blog-posts-in-different-columns/

Topic Closed

This topic has been closed to new replies.

About this Topic