Cyberbat
Member
Posted 9 years ago #
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 :)
codergurl
Member
Posted 9 years ago #
put $cat = 1; in index.php before the includes.
Anonymous
Unregistered
Posted 9 years ago #
Hi,
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?
Thanx...
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
Anonymous
Unregistered
Posted 9 years ago #
mmenke, yes, you can put $cat = -5 I've tried it before and it worked.
super, will try... thanks alot..!
Maximus
Member
Posted 8 years ago #
woot, found this through google
thanks codergurl, it worked, woo hoo
Anonymous
Unregistered
Posted 8 years ago #
hmm..to 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.
pixelss
Member
Posted 7 years ago #
i'm tryin to get the same thing to work, but i'm not able too, can some one help us out?