Buy Sell Discuss UK Domain Names at AcornDomains.co.uk Domain Monster Domain Name Registration

Today's Drop Dates are: 18-02-2012 or 25-02-2012   All times are GMT. The time now is 12:54:20 AM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Content Management Systems
Connect with Facebook

Content Management Systems Website CMS systems, Blog Site Systems, Mini Site Scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 16-02-2011, 06:58:01 PM     #1 (permalink)
jwm

 
Join Date: Apr 2007
Posts: 395
jwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond repute

Really dumb wordpress query

This is probably really simple but I can't find the answer anywhere so hoping someone can help.

I have set up a WP site and have a number of categories about 8 of these are brand names and about 8 are price categories (ie £0-£50, £50 to £100 etc).

I want to arrange the sidebar so I have a title 'Search by Price' which then has the price categories below it (no brand categories included). Then below that have a title 'Search by Brand' which has the brand name categories below it but not the price categories.

I thought this would be simple enough but in WP I only seem to have the option to display all categories or none! Driving me mad trying to split them up. Can anyone help?
jwm is offline  
Old 16-02-2011, 07:08:29 PM     #2 (permalink)

 
newpbc's Avatar
 
Join Date: Feb 2010
Location: Wirral - UK
Posts: 992
newpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond reputenewpbc has a reputation beyond repute

PHP Code:
<?php wp_list_categories('orderby=name&include=3,5,9,16'); ?>
Change the 3,5,9,16 for your relevant category id's
__________________
Laterooms Wordpress Solution |
newpbc is online now  
Old 16-02-2011, 07:10:46 PM     #3 (permalink)
Member
 
Join Date: Oct 2010
Posts: 61
aaclapham is on a distinguished road

Just create two categories 'Search by Price' & 'Search by Brand' . Then create the others as sub categories of the above two.

Drop the Categories widget into your sidebar and remember in options to tick Show hierarchy.
__________________
Andrew Clapham - Style Now Media Ltd.
aaclapham is offline  
Old 16-02-2011, 08:09:46 PM     #4 (permalink)

 
peter_w's Avatar
 
Join Date: Nov 2008
Location: Leeds, UK
Posts: 470
peter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond repute

You'd be better of creating custom taxonomies rather than trying to do it with categories. It would give you far more control over the way you can display things.
__________________
You'll find me on LinkedIn, Twitter and Google+.
peter_w is offline  
Old 16-02-2011, 09:51:15 PM     #5 (permalink)
jwm

 
Join Date: Apr 2007
Posts: 395
jwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond reputejwm has a reputation beyond repute

Quote:
Originally Posted by peter_w View Post
You'd be better of creating custom taxonomies rather than trying to do it with categories. It would give you far more control over the way you can display things.
Thanks, could you explain what this means in a non techie way?
jwm is offline  
Old 16-02-2011, 09:54:27 PM     #6 (permalink)

 
peter_w's Avatar
 
Join Date: Nov 2008
Location: Leeds, UK
Posts: 470
peter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond reputepeter_w has a reputation beyond repute

To be honest probably not as it means editing the functions.php file and doing custom query post strings!

This article by Justin Tadlock is an excellent introduction: http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28
__________________
You'll find me on LinkedIn, Twitter and Google+.
peter_w is offline  
Closed Thread



Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
WordPress PHP developer anyone golddiggerguy Services Wanted 5 30-12-2010 01:17:10 PM
High quality free Wordpress themes springer Wordpress 0 05-01-2010 02:48:31 PM
Example of sites built in Wordpress WaftyCrank Wordpress 13 18-03-2009 07:53:02 PM
Free Wordpress Theme Gallery - Submit YOUR theme! bizcorp Domain Appraisals 2 20-02-2009 03:42:46 AM

Domain Sponsor 2


All times are GMT. The time now is 12:54:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".