Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
Im very new to wordpress, so bare with me.
I have a theme which has a 3 column homepage. In the menu options, it gives me 3 custom query, one for each column.
I want to filt the posts which are not included in the catagory "homepage".
I've tried
quote:
<?php if ( is_home() ) { query_posts( 'cat=Homepage' ); } ?>
[/qiote]
quote:
query_posts( 'cat=Homepage' );
and then about 10 variations on the above, but its still not working.
any have any suggestions?
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Can you not do: query_posts( 'cat!=Homepage' );
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
doesnt work
This Website explains it all, but still cant get it running
[Edited on 04-02-2012 by Bart]
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
Misread what you wanted to do actually - don't try filtering the posts at a theme level. There's a plugin which lets you select which posts you want on there called 'Front Page Categories'.
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
spot on, worked a cham, thanks ed!
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
It's a bit silly it doesn't do that out the box - had the same problem a while back! At least you're sorted now
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
quote: Originally posted by ed
It's a bit silly it doesn't do that out the box - had the same problem a while back! At least you're sorted now
Yeah, was thinking the same, something so basic and obvious.
|
Bart
Member
Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
|
Ed,
Is there a plugin which allows you to add Widgets to only a single page? (rather than a particular template).
Ive found a few plugins which claim to, but they're quite old and would appear incompatible.
|