corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Any Wordpress Gurus here?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Any Wordpress Gurus here?
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
4th Feb 12 at 20:59   View User's Profile U2U Member Reply With Quote

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
4th Feb 12 at 21:42   View User's Profile U2U Member Reply With Quote

Can you not do: query_posts( 'cat!=Homepage' );
Bart
Member

Registered: 19th Aug 02
Location: Midsomer Norton, Bristol Avon
User status: Offline
4th Feb 12 at 21:51   View User's Profile U2U Member Reply With Quote

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
4th Feb 12 at 22:09   View User's Profile U2U Member Reply With Quote

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
4th Feb 12 at 22:19   View User's Profile U2U Member Reply With Quote

spot on, worked a cham, thanks ed!
ed
Member

Registered: 10th Sep 03
User status: Offline
4th Feb 12 at 22:20   View User's Profile U2U Member Reply With Quote

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
4th Feb 12 at 22:53   View User's Profile U2U Member Reply With Quote

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
5th Feb 12 at 09:50   View User's Profile U2U Member Reply With Quote

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.

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
some :( pics from one of our trackdays AK General Chat 19 811
5th Sep 09 at 12:25
by Hammer
 
Help with my website. PLEASE :) chris_uk Geek Day 10 506
29th Jan 10 at 08:22
by Sam
 
The best free website builder? deano87 Geek Day 11 1432
24th Apr 10 at 14:59
by Sam
 
Force a Single Domain Name over Aliases ed Geek Day 11 630
20th May 11 at 13:40
by ENB
 
PHP / Web Classified Site Nismo Geek Day 23 731
6th Jul 11 at 17:44
by Gary
 

Corsa Sport » Message Board » Off Day » Geek Day » Any Wordpress Gurus here? 29 database queries in 0.0079010 seconds