Support » Plugins » Index.php -> only 1st Cat

  • Hello!
    Could someone please help me ๐Ÿ™‚ ?
    How can I do if I want my index.php (1st page) just returns the posts from the 1st category (News for example) and I don’t want to use index.php?Cat=1
    Cause the homepage returns all posts from all categories if just “index.php”
    Thanks ๐Ÿ™‚

Viewing 9 replies - 1 through 9 (of 9 total)
  • put $cat = 1; in index.php before the includes.


    usefull tip, but I have a related question. Could someone also tell me how to have one category nรณt show up on a page?
    I mean, if I would have cats 1 – 10, I don’t want to display cat 5, how do I do this?
    I presume I can’t put $cat = -5; in index.php before the includes or?

    In case this was not clear:
    I don’t want to display cat 5 -> I don’t want to display the posts in cat 5

    mmenke, yes, you can put $cat = -5 I’ve tried it before and it worked.

    super, will try… thanks alot..!

    woot, found this through google
    thanks codergurl, it worked, woo hoo have news only displayed you put $cat = 1; before ‘includes’ in index.php? I could only find one mention of include in index.php (and it didnt seem right somehow) and no mention of the $cat (variable? – forgive me i’m a complete newbie). Didnt work for me anyhow. Suspect I have some profound misunderstanding.

    i’m tryin to get the same thing to work, but i’m not able too, can some one help us out?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Index.php -> only 1st Cat’ is closed to new replies.