Remove top level parent category from permalink (3 posts)

  1. robolist
    Posted 4 years ago #

    Hi there,

    I am stuck on finalising my permalink structure and can't seem to find a solution. I have my post in the forth tier like this .com/cat1/cat2/cat3/post/

    Each category is a child of the one above so that I can contain a loop of the categories below. Plus I am happy to have the last category URL .com/cat1/cat2/cat3/

    But what i really want is to remove the top level parent from the final URL so that my post is only in the third tier of the structure.

    I have it set to;

    But it automatically puts all categories in the URL. So my question is really how can i remove the top level parent category from this structure? I hear there are some ways to do a re-write but cants seem to find out how. Is there are way of doing it without touching the core WP files? i would of course prefer that to avoid the hassle of when i upgrade...

    Or is there a plugin? I found one plugin (sorry forget the name now, i think it was advance permalinks or something) but i heard it wasnt stable.

    I would be very grateful if anyone had any ideas or suggestions to help me out :)

    Many thanks in advance.

  2. Nick Forest
    Posted 4 years ago #

  3. robolist
    Posted 4 years ago #

    Hi Nicusor,

    Thanks for the links, I ended up just removing the top lever parent category and then creating a page with a filter to place all the posts in the child categories on it. I had to do it fast because i am going to remove the 'NOINDEX' tag tomorrow and had to sort out the URL structure asap.

    But i will check out the links you sent me because i would of course prefer to use the category as opposed to the page. With the page i have to insert the new category ID everytime i create a new sub category. So thanks i will have a look and let you know if it works out...

    Cheers :)

Topic Closed

This topic has been closed to new replies.

About this Topic