• I’ve set up a WP blog for my friend, however, he wants to have a page where all his friends are listed with pictures and people can comment on each person. Instead of installing another program/database I thought I could just create a catgory called “Friends” and just call that catagory for the page. But, if I post to the friends catagory, it posts on the main page of the blog too. Can I/How can I make it so posts in a certain catgory do not display on the main blog, but will show up when you show that specific catagory?
    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Try using a post-date far ahead in the future, like in 3004, instead of 2004 ?? Might work, I remember doing that once.

    Thread Starter Anonymous

    WP lets me change the date to a couple years ahead, which prevents it from showing up on the main page. But it also prevents it from showing up on the Friends catagory page. The post doesn’t even diplay when you point directly to it… Any ideas?
    Thanks.

    well, if everything fails,
    https://coppermine.sourceforge.net/ this is a pretty cool gallery software.

    Thread Starter Anonymous

    I added that line to index.php and it does prevent posts in the catagory “friends” from showing up on the main page. However, it also seems to mess-up all the catagories: When you click on them you get the same posts that are on the main page. I assume it’s because they all use the same template (index.php)…
    As I see it, I have two options.
    1. Get rid of the line, but try and use the show-one-catagory-on-front-page hack, just backwards to exclude the “friends” catagory. However, I don’t know if this is functionally any different from your above solution. Will it limit it for every catagory or just the front page?
    2. The other option would be to keep the limiting line and create a static page which calls the “Friends” catagory. But since the line messes with all the catgories, wouldn’t I have to create a seperate static/template page for the catagories? Suggestions?
    Thanks.

    That’s odd…. I use it and don’t have any issues….. at least with the version I have (which is a nightly from some weeks ago). Hmmm… I wonder if it’s been fixed in the nightly but not in the main release…..
    *ponders this for a moment*
    TG

    Use this:
    if (!$_GET[‘cat’]) $cat = ‘-X’;
    Thanks to LaughingLizard for the tip in IRC.

    Thread Starter Anonymous

    Thank you all very much. I got it to work.

    pande – try the solution skippy provided…. I suspect that I might have a modified blog-header.php where the effect is different.
    TG

    Okk.. done !
    Thanks anyway ??
    -pande(‘;’)

    How did you get it to work?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Catagories’ is closed to new replies.