WordPress.org

Forums

Catagories (11 posts)

  1. Anonymous
    Unregistered
    Posted 12 years ago #

    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!

  2. carthik
    Member
    Posted 12 years ago #

    Try using a post-date far ahead in the future, like in 3004, instead of 2004 :) Might work, I remember doing that once.

  3. Anonymous
    Unregistered
    Posted 12 years ago #

    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.

  4. OperaManiac
    Member
    Posted 12 years ago #

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

  5. Anonymous
    Unregistered
    Posted 12 years ago #

    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.

  6. TechGnome
    Moderator
    Posted 12 years ago #

    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

  7. skippy
    Member
    Posted 12 years ago #

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

  8. Anonymous
    Unregistered
    Posted 12 years ago #

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

  9. TechGnome
    Moderator
    Posted 12 years ago #

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

  10. pande
    Member
    Posted 12 years ago #

    Okk.. done !
    Thanks anyway :)
    -pande(';')

  11. atomix
    Member
    Posted 11 years ago #

    How did you get it to work?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.