• Resolved sofiahz

    (@sofiahz)


    Hi!

    I am trying to change the URL structure of my posts. I would like them to say like this for example: webiste.com/news/category/postname

    I have tried to change on the section In permalinks – category base to news. If I look at the example above this should change it to the above that I like but it does not.

    I have set the permalinks to: /%category%/%postname%

    The result I get is just website.com/category/postname so not the category base.

    I have taken over a custom built theme but have set up a test site and have removed all of their things so dont think anything there should be affecting.

    Anybody know a solution to this?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi sofiahz,

    Thanks for reaching out!

    It looks like you’re trying to modify your URL structure to include a custom category base like webiste.com/news/category/postname, but you’re currently only seeing website.com/category/postname.

    To achieve the URL structure you want, you might need to adjust the Category Base and Post Name settings in your WordPress permalinks settings, but it sounds like you’ve already done this.

    Here are a few things to check and try:

    1. Flush Rewrite Rules: Sometimes WordPress needs to refresh its rewrite rules. Go to Settings > Permalinks and click the Save Changes button without making any changes. This will flush the rewrite rules and might fix the issue.
    2. Custom Permalinks Plugin: If the default settings don’t work, you might want to use a custom permalinks plugin. Plugins like Permalink Manager Lite can give you more control over URL structures.
    3. Theme and Plugins Conflicts: Since you mentioned using a custom-built theme, ensure that there aren’t any custom functions or theme settings affecting the URL structure. Temporarily switch to a default WordPress theme (like Twenty Twenty-One) to see if the issue persists.
    4. Check for Caching: If you have any caching plugins or server-side caching, clear the cache to ensure that the changes are reflected.

    If you’ve tried these steps and are still having trouble, please let us know, and we can look into it further.

    Hope this helps!

    Best regards,
    Mohd Javed

    Could you try this

    1. Go to Settings > Permalinks in your WordPress dashboard.
    2. In the Custom Structure field, enter the following:/news/%category%/%postname%
    3. Scroll down to the Optional section and leave the Category base field blank.
    4. Click Save Changes at the bottom of the page.

    This configuration should result in URLs that look like:website.com/news/category-name/post-name

    Thread Starter sofiahz

    (@sofiahz)

    Thank you! that worked.

    Great to hear !

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.