Splitting 1 blog into 2 using category slugs?
-
I am trying to split a single blog that takes all categories within our blog and make two different pages/loops that show only certain categories for each page.
Right now everything is flowing through one loop but I am updating so that only “news” goes to one page while all other “blog” type post go to the other page. I have done this using query_posts and category_name and slug. I have created two categories and named one news and one blog. I then can assign old post or future post to one of these categories as well as the category that it actually belongs.
So for example I might want a post to show up on the “blog” page but it is really an “Education” post and that is the category I would like to show up in the URL as my permalink includes %category% like so…
https://www.company.com/education/post-title-here
The catch is that I never want the “blog” or “news” category to show up in the URL so that old links are not broken and new links are consistent with the old ones.
The problem I think lies in if I create categories after I have created these two new categories as WP favors the category with the lowest ID to show in the URL.
Is there a way to eliminate these two particular categories from ever being able to show up in the URL?
The other option I think I have is changing the category ID manually which I do not feel comfortable doing. I have searched for a plug-in that would allow me to change the cat ID but was not able to find one that seemed safe. If I had a very clear explanation of how this worked I would be willing to give it a shot though.
Does anyone have a suggestion as to how I can eliminate those two categories from WP ever putting them within the URL if the cases mentioned actually do occur? I never want them to be included in the permalink… ever.
Hoping that I have explained this in a way that makes sense to everyone. Any suggestions would be much appreciated.
Thanks for your time all!
- The topic ‘Splitting 1 blog into 2 using category slugs?’ is closed to new replies.