How to change category of a post automatically in WordPress?

How can I have multiple "blog-like" pages with my wordpress installation?  If i use the same one on all the pages the posts get mixed up.  I'd rather not enable MU but instead work with some sort of "Category system" that determines which post should be showed on which page.

  • wordpress

  • Answer:

    This can be done using categories -just like you want. Make a post category for each "blog" you want to display posts on.  Example: If you are going to have a page with posts about cats, make a category called cats. then make a category called dogs, and then one for fish. Assign each post to the correct category where you want it to appear. Go to Settings>Permalinks and choose the last option to display "/%postname% as your link structure.  This will allow you to set up SEO friendly links to each of your "blogs" on each subject. Go to Appearance>Menus and edit your current menu or set one up if one doesn't exist on the page.  Call the menu whatever you want. Create custom links in your menu to make wordpress display a page with all of the blog posts in a specific category.  Example menu link: http://yoursite.com/category/cats Menu links can be named whatever you want like "cat blog".  Visitors clicking on  the "Cat blog" menu link will arrive at a page displaying your latest cat posts.  This goes for each category page link you make in your menu. When you make new posts, assign them to the category where you want them to be displayed.

Cameron Crest at Quora Visit the source

Was this solution helpful to you?

Other answers

You may want to consider using Custom Post Types and Taxonomies. This allows you to create other types of posts that you can organize as you like. For example I did that to create a menu for a bar. Each each beverage is made like a post, but they have their own post type. Instead of categories, I have taxonomies such as Kind, Region, Price, etc. Here is a sample page: http://www.barkingspidertavern.com/beverage/dortmunder-gold-lager/ The https://wordpress.org/plugins/custom-post-type-ui/ plug-in makes these easy to create, though you will still need to customize some template files to display the content properly. http://codex.wordpress.org/Post_Types These also work well for things like online portfolios.

Heidi Cool

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.