Jump to content
Sign in to follow this  
florafair

Best Way to Create a Categories Page in Platform Pro

Recommended Posts

florafair

Here's the site I'm working with: http://allisonfishman.com 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!

Share this post


Link to post
Share on other sites
bryan-hadaway

Category pages are created automatically. If you created a category called "Cajun Recipes" there would automatically be a page created for it: http://allisonfishman.com/category/cajun-recipes/ 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

Share this post


Link to post
Share on other sites
florafair

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

Share this post


Link to post
Share on other sites
florafair

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?

Share this post


Link to post
Share on other sites
florafair

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.

Share this post


Link to post
Share on other sites
florafair

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

Share this post


Link to post
Share on other sites
catrina

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.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
makeylon

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:

foreach( ( get_the_category() ) as $category ) {
	$the_query = new WP_Query('category_name=' . $category->category_nicename . '&showposts=5');
	while ($the_query->have_posts()) : $the_query->the_post();
	?>
				<li>
					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
				</li>
	<?php endwhile; ?>
	<?php
	}

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?

Share this post


Link to post
Share on other sites
makeylon

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×