• Resolved flagsuser

    (@flagsuser)


    I need help with creating a custom URL for blogs on WordPress. In my blogs I want to show URL structure like this:

    For categories: /blog/category/topic-name
    For tags: /blog/tag/topic-name

    For tags the URL structure is showing correctly but for categories the URL is showing like this:

    /blog/category/blog/topic-name

    I have checked all my permalinks settings, category URL settings and blog page settings and everything seems to be fine. Can someone please tell me how to remove that extra /blog after /category in the URL?

    As an additional info, if its of any help, I’m also using a plugin to remove category in URL. When I activate it the URL structure shows like /blog/category-name and then on that page all the blog posts under that category show up. I want it to be like as explained above /blog/category/topic-name.

    In my permalinks I’m using custom structure as /blog/%postname%/.

    • This topic was modified 5 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Thread Starter flagsuser

    (@flagsuser)

    The issue has been resolved. This is how I resolved it. I deactivated the plugin which I was using to remove /category in the URL. Also in my Posts >> Categories section in the admin panel I was using categories in hierarchical manner. At the top was blog category and under it I had placed other categories. So I deleted the blog category and again created it. When the blog category was deleted the other categories under it became top level categories automatically. In my permalinks I’m using this URL structure after the domain name /blog/%postname%/

    After doing all this the issue was resolved and I got the URL in desired manner as I wanted it to be shown.

    So if someone else is having similar type of issues in URL not displaying in desired manner then please check if you are using any plugin for this purpose, and check your posts and page section. You may also need to change your permalink structure as well. It should all work out to be fine after that.

    • This reply was modified 5 years ago by flagsuser. Reason: Improvisation of better terminology for better understanding of the readers
    • This reply was modified 5 years ago by flagsuser.
Viewing 1 replies (of 1 total)
  • The topic ‘Custom URL structure in WordPress blogs’ is closed to new replies.