• Hi everyone

    I’m wanting to remove the word ‘category’ from the URL on all my Blog posts.

    What I am trying to achieve is this: /news/benefits-management/

    I have tried

    • permalinks in a variety of different ways such as leaving a ‘.’ in the category base but this just creates 404 pages;
    • creating a parent category ‘News’ and making the category base in the permalinks ‘News’ but this naturally creates a double news/news in the URL.

    I haven’t tried the Yoast plugin but I imagine that will create the 404 errors if I block off ‘category’.
    I need to point all my category pages to identify /news/ instead of /category/ however, everything that I have tried has either broken the page, the URL is incorrect, or goes back to the home page – specifically for the Recent Posts.

    The Recent Posts do not have the /news/ or /category/ in the URL and I’m not sure why
    /how-to-have-a-productive-meeting/news/uncategorized/

    Thanks for your help in advance

    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Use this as custom structure in permalinks settings: /%category%/%postname%/

    This will create exactly your desired link for posts, if I’m not misunderstanding now.

    Thread Starter feliciaforbes

    (@feliciaforbes)

    Thanks Threadi. I did try that and it is the closest I have got to all links working. However, the URL is not quite right still. So for instance…

    A recent news – does not show up the category base “news”
    in the URL
    /uncategorized/how-to-have-a-productive-meeting/
    and the breadcrumbs follow suit: Home/Uncategorized/How to Have a Productive Meeting

    However, the ‘Category’ based now ‘News’ posts do read correctly in the category URL:
    /news/benefits-management/

    but not the breadcrumbs and not the actual post URL:
    /organizational-project-management/the-benefit-of-benefits-realization/

    I can only put this down to the fact that I removed the “parent” category “News”. I had to do that because the URLs were breaking.

    Any thoughts on this how I can overcome the issue with the parent category?

    • This reply was modified 2 years, 8 months ago by Jan Dembowski.

    /uncategorized/how-to-have-a-productive-meeting/ is not assigned to any category. Assign it to the news category if the URL should contain that.

    I can’t reproduce your problem with the subcategories. With a default theme and the entry /%category%/%postname%/ a URL is created that consists of main and subcategory.

    If this does not happen with you, some plugin could be to blame, possibly also the theme. The theme is also responsible for the output of the breadcrumb. If you have questions about this, you should contact the theme developer. Since you are using a commercial product like Divi, this forum can’t help you.

    • This reply was modified 2 years, 8 months ago by Jan Dembowski.
    Thread Starter feliciaforbes

    (@feliciaforbes)

    Thanks so much for your assistance. Just one small question, this post
    /news/how-to-have-a-productive-meeting/

    I created a new category named ‘News’ (but it’s not a parent category) and removed the page from ‘uncategorised’. It broke the page link.
    But if I place it in another category it displays fine. It’s got something to do with the word ‘News’. I don’t understand this since it’s just another category, unless, it has something to do with the ‘current’ posts setup.

    • This reply was modified 2 years, 8 months ago by Jan Dembowski.

    You had written you had news as a category before and deleted it. Is it really deleted? Not that it exists twice. Maybe it is enough to save the permalinks under Settings again to clean that up.

    Thread Starter feliciaforbes

    (@feliciaforbes)

    Yes I reinstated the category base to ‘News’ and followed your advice with the /%category%/%postname%/.

    I think that I’ll have to leave it as this.

    Thanks so much for your help.

    Cheers
    Felicia

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalinks and ‘category’ in URL’ is closed to new replies.