Jump to content


Photo
- - - - -

Best Way to Create a Categories Page in Platform Pro


  • Please log in to reply
12 replies to this topic

#1 florafair

florafair

    Member

  • Members
  • PipPip
  • 23 posts

Posted 18 March 2011 - 04:57 AM

Here's the site I'm working with:

Please Login or Register to see this Hidden Content

What I want is to make the blog feed on the Recipes page organized so that the posts actually appear beneath their recipe sub-categories. Preferably, the sub-cats would be listed, with the 5 most recent links in that sub-cat beneath them. Perhaps even with thumbnails, if I dare to dream? Warning though: I don't know much about CSS and even less about php. The less code I touch, the better for humanity. Thanks!

#2 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 18 March 2011 - 07:17 AM

Category pages are created automatically.

If you created a category called "Cajun Recipes" there would automatically be a page created for it:

Please Login or Register to see this Hidden Content



It will only show posts from that category. Now all that you have to do is create a custom menu in:

Appearance > Menus

and add the category pages.

You can even change the category slug to something else in:

Settings > Permalinks

Thanks, Bryan

#3 florafair

florafair

    Member

  • Members
  • PipPip
  • 23 posts

Posted 18 March 2011 - 02:55 PM

Thanks, Bryan! I'm going to give this a try. Will respond here if I run into any problems.

#4 makeylon

makeylon

    Super Member

  • Members
  • 232 posts
  • Country: Country Flag

Posted 19 March 2011 - 01:11 AM

But how do you keep the "category" from being part of the URL? In other words, I'd really like my urls to look like:

Please Login or Register to see this Hidden Content



#5 florafair

florafair

    Member

  • Members
  • PipPip
  • 23 posts

Posted 19 March 2011 - 04:16 AM

Actually, this didn't answer my question. What I want is a single page that shows all the subcategories with related blog links under them. So, if someone went to the Recipes page, they would see. DESSERTS Dessert Post 1 Link Dessert Post 2 Link Dessert Post 3 Link SAUCES Sauce Post 1 Link Sauce Post 2 Link Sauce Post 3 Link BREADS & PASTAS Bread & Pasta Post 1 Link Bread & Pasta Post 2 Link Bread & Pasta Post 3 Link ... and so on. Any way to make this work?

#6 florafair

florafair

    Member

  • Members
  • PipPip
  • 23 posts

Posted 19 March 2011 - 04:17 AM

Just to clarify, all those headings (Desserts, Soups, Etc.) are the sub-categories of Recipes. It would just be a more granular way of organizing post in the Recipes category.

#7 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 19 March 2011 - 04:22 PM

You can start by creating a Recipes page and then trying out this plugin:

Please Login or Register to see this Hidden Content



#8 florafair

florafair

    Member

  • Members
  • PipPip
  • 23 posts

Posted 26 March 2011 - 12:36 AM

But that plugin seems to only display different pages, not different categories. Is there one similar for displaying categories?

#9 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 26 March 2011 - 04:25 PM

I'm not aware of a plugin for categories, but an alternative solution is to create the page and link the categories and subcategories within the editor so that they can be formatted the way you want them.

#10 makeylon

makeylon

    Super Member

  • Members
  • 232 posts
  • Country: Country Flag

Posted 26 March 2011 - 09:45 PM

I used boxes and php code to do this. You don't really need the boxes; you can put the code where ever you want it to display the posts. However, you'll very likely need to include a plugin such as exec-php or shortcode exec-php inorder to use it in posts, boxes, etc, since wordpress by default strips out php code unless you embed it in the template somewhere. Here is the code:

Please Login or Register to see this Hidden Content


I even wrote some code to give myself a context specific listing of posts depending on what page or category is showing.

Huh. Maybe I should turn it into a plug in?

#11 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 27 March 2011 - 12:12 AM

Mark, in response to eliminating the category base, I've had good luck with "WP no category base"

Please Login or Register to see this Hidden Content



#12 makeylon

makeylon

    Super Member

  • Members
  • 232 posts
  • Country: Country Flag

Posted 27 March 2011 - 03:30 AM

Jimmy, AWESOME! Thank you! Guess I shoulda thought to look for that in the first place... lmao.

#13 inov8ed

inov8ed

    Super Member

  • Members
  • PipPipPipPip
  • 122 posts
  • Country: Country Flag

Posted 27 March 2011 - 06:08 AM

You could also just use the List Categories Post plugin. I use it and it allows you to just put in a short code to get the posts from any category. You can include all sorts of options.

Please Login or Register to see this Hidden Content

-Adam