Site logo

Archived topic

categories and subcategories problem

6 replies · Started by Joe on June 27, 2020

Viewing posts 1–7 of 7

Hi, when creating a post and adding category and subcategory I run into a problem. I tick the boxes for the main category and the subcategory but if I make the parent category the primary category it strips out the subcategory from the url. So instead of the url being blog/learning-to-play/post name it changes to blog/post name.

Hi there,

what plugin is it you're using to provide the Primary Category option ?
GP doesn't interfere with permalinks and URL structures, so you may need to look at that plugins documentation - let me know

Hi Dave

Below you'll find a list of plugins on the site. I'm not sure but I don't think any of them specifically provides a Primary Category option. I could be wrong. Do you know?

Akismet Anti-Spam

Better Search Replace

Classic Editor

Contact Form 7

Contextual Related Posts

Cookie Notice

Elementor

Elementor Pro

Envato Elements

GP Premium

jQuery Pin It Button for Images

Optimize Database after Deleting Revisions

Really Simple CAPTCHA

Remove Query Strings From Static Resources

Simple Sitemap

Smush

WishList Member™

Yoast SEO

Thanks for that David. So Yoast is where the option comes from.

Reading through their page it looks like I would have to add a piece of code to my theme's functions.php file.

So, it looks like this feature only avoids confusion if there are many options to make the primary category.

I don't think that this will be a problem with my site, and possibly the way it is set at the moment might be OK. What do you think?

I have added an image showing how the structure looks in wordpress page editor. The subcategory is indented to the main category which is blog.

I've very rarely had to use the primary category feature. The one place I've found it useful is on our documentation site (https://docs.generatepress.com). We use it to display/highlight the primary category of an article if it belongs to many.

Unless you specifically need the primary category feature for something, I would probably just ignore it :)

This archived topic is closed to new replies.