Site logo

Archived topic

Sub categories not showing up in URL per my Permalink setup

5 replies · Started by Kelsey on October 23, 2022

Viewing posts 1–6 of 6

Hello,

Before posting my question, I followed the steps in this thread: https://generatepress.com/forums/topic/posts-not-showing-up-under-proper-categories/ But it didn't solve my issue.

I'm creating a glossary of terms on my website.
And I'd like those terms to fall under the following structure: resources/terms/r/ristretto

But right now, it's reading: resources/terms/coffee-terms-resources/r/ristretto/

I don't know why the "/coffee-terms-resources" is showing up in my schema.

I want it to be resources/terms/r/ristretto

I'm using the RankMath SEO plugin, not Yoast, and RankMath doesn't have a backend option that overrides the custom permalink settings in WordPress.

Here is the post in question: https://thegoldenlamb.com/resources/terms/coffee-terms-resources/r/ristretto/

Hi Kelsey,

May we know what setting you have in Settings > Permalinks?

Hello, sure.

/%category%/%postname%/

-Kelsey

Hi there,

the Theme doesn't interfere with the permalink structure.
I did notice is if i visit the URL you want ie.

https://thegoldenlamb.com/resources/terms/r/ristretto/

Then it gets 301 redirected to the URL you don't want - see here:

https://www.screencast.com/t/qENjMQ4pynnV

Not sure if you have any redirects setup on the site.

But creating custom permalink structures is best suited to a plugin like Yoast.
If not i would suggest asking on WordPress stackexchange, as you're more likely to find some experts there:

https://wordpress.stackexchange.com

I figured it out! Since I already had a category named "coffee," WordPress wouldn't allow me to have a sub-category with the same name, so it was creating its own unique slug.

Thanks for your help.

Glad to hear that !!!

This archived topic is closed to new replies.