Mobile app version of vmapp.org
Login or Join
Sarah324

: How to add category in URL for Wordpress theme We are having trouble getting the category name into the URL. We want to use the following structure: example.com/knowledge-base/category-name/article-name

@Sarah324

Posted in: #Url #Wordpress

We are having trouble getting the category name into the URL.

We want to use the following structure:

example.com/knowledge-base/category-name/article-name

For some reason our wordpress theme (HelpGuru) is not pulling these changes through.

Is there any way to override the theme's settings and force the URL to include the Category?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sarah324

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

This is not an issue generated by the theme, in order to add categories into you URL you'll need to to change your URL structure. In order to do this you'll need to navigate to:

wp-admin => Settings => Permalink

Where you'll find a section like this:



By selecting the Custom Structure option you can modify your URL the way you want, for example:



Custom Structure - domain.com /%year%/%monthnum%/%postname%/



In this case, what you need is add the %category% to this input, for example:



Custom Structure - domain.com %category%/%postname%/



Please note: You never, ever put your site url in the permalinks slot. You must use one of the structure tags, or a combination of tags only.

You can use a variety of tags here, check them out on codex.wordpress.org/Using_Permalinks

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme