Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 07-24-2009, 05:52 PM   #1
Active Warrior
 
Join Date: Mar 2009
Posts: 89
Thanks: 20
Thanked 4 Times in 4 Posts
Default How do I get a category list in WordPress?

Hi. I use WordPress, and cannot find a way to have a number of posts show as a list within a category.
For example, on the Amazon home page in the left hand sidebar, if you click the 'books' parent category you can keep drilling down until you get to the last child category. But on WordPress, if I create a subcategory and assign a parent category, all the posts are still listed on the home page. What I am trying to say is I don't want the sub-category posts to be shown as a list until someone has clicked the parent category to 'open' it.
What am I missing that is so simple? Do I need to create pages instead of posts?
Bounderby is offline   Reply With Quote
Old 07-24-2009, 06:09 PM   #2
Kezz Bracey
War Room Member
 
Kezz's Avatar
 
Join Date: Dec 2008
Location: Australia
Posts: 1,291
Blog Entries: 5
Thanks: 323
Thanked 599 Times in 291 Posts
Default Re: How do I get a category list in WordPress?

There's a couple of ways you could do what you need - I'll suggest one.

Wordpress will show your latest posts by default on the homepage. You can create a new page, name it Home, fill it with a welcome message and then set that page to act as your homepage in the Settings > Reading area of admin.

Then, you can use a categories widget to allow people to navigate through your categories. Or, if you feel like hitting a little coding up, you can try using the following in your theme:

PHP Code:
<?php wp_list_categories(); ?>

Kezz is offline   Reply With Quote
Old 07-24-2009, 06:38 PM   #3
Active Warrior
 
Join Date: Mar 2009
Posts: 89
Thanks: 20
Thanked 4 Times in 4 Posts
Default Re: How do I get a category list in WordPress?

Thanks.
I have been using a static Welcome page as a landing page already.
I have no idea what that code is supposed to do, but I shall investigate available widgets further.
Bounderby is offline   Reply With Quote
Old 07-24-2009, 07:32 PM   #4
Watching you...
War Room Member
 
Istvan Horvath's Avatar
 
Join Date: Dec 2008
Location: Waterdown, Ontario, Canada
Posts: 5,986
Blog Entries: 2
Thanks: 1,575
Thanked 2,726 Times in 1,656 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Istvan Horvath
Default Re: How do I get a category list in WordPress?

Bounderby,

I am trying to understand what is it what you want to achieve. Maybe because we are not talking the same language...
A "category list" in WordPress means a list of all your categories by name - usually displayed in the sidebar, like
Fruits
Apples
Oranges

Vegetables
Carrot
Tomato

etc.

The bold ones are (parent) categories and the italics are sub- or children categories.

However, I suspect you are talking about POSTS, not categories!

Quote:
all the posts are still listed on the home page
Yes, that's the default in any blogging software. All posts are displayed on the homepage. What else did you expect?
And, BTW, that's NOT a "list".

Quote:
What I am trying to say is I don't want the sub-category posts to be shown as a list until someone has clicked the parent category to 'open' it.
That doesn't work like that.
Clicking on any categoy name (in the menu, in the sidebar etc.) will display all the post in that particular category.
More exactly, when clicking on a parent category - WP displays by default the posts in the parent and all its subcategories. If that is the problem, there are plugins for that; e.g. Kinderloss

If none of the above covers what you want, you need to sit down and figure out how to ask your question - try using the proper WP terminology.

In the first half of the year we are supposed to work for the taxman. I think that's a mistake.
Help me to get rid of the taxman ASAP - thanks! (You, too, should make less mistakes!)


Istvan Horvath is offline   Reply With Quote
Old 07-24-2009, 08:48 PM   #5
Content That Rocks
War Room Member
 
Sandi Valentine's Avatar
 
Join Date: Jun 2007
Location: , , USA.
Posts: 450
Blog Entries: 3
Thanks: 55
Thanked 23 Times in 17 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to Sandi Valentine
Default Re: How do I get a category list in WordPress?

Quote:
Originally Posted by The Pension Guy View Post

If none of the above covers what you want, you need to sit down and figure out how to ask your question - try using the proper WP terminology.
Wow - way to be unpleasant about answering a question.

OP -

You can also use a nested categories plugin to get the results you're asking for. Try WordPress › Collapsing Categories WordPress Plugins

HTH

Sandi

Sandi Valentine is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
category, list, wordpress

Thread Tools

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



All times are GMT -6. The time now is 05:58 PM.