Custom Structure Permalinks not working

This topic contains 7 replies, has 3 voices, and was last updated by  Kiran 5 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #462297

    Pepita Bos
    Full Member
    Post count: 78

    A little background first. I am working with 3 CPTs, which each have categories and subcategories. I have set up the Custom Structure Permalink as. %category% %postname%

    For CPT A, I noticed that the permalink structure was as follows: http://www.xyz.com/CPTA/subcategory/postname

    For CPT B, I noticed that the permalink structure was as follows: http://www.xyz.com/CPTB/category/postname

    I thought it was very strange that for one CPT shows subcategories after the CPT and the other shows the category.

    I was looking at this, because I would like the permalink to be as follows: domain/CPT/category/subcategory/postname. Not only for SEO, but also for retargeting.

    Anyway, I removed the Custom Structure and then set it up again. But I have made the problem worse. Now the permalink structure is as follows: http://www.xyz.com/CPT/postname. Category or subcategory has disappeared.

    I am sure I did something, but two questions:

    1) How can I have categories again?
    2) Is it possible to do the following: domain/CPT/category/subcategory/postname

    Thanks in advance.

    #462356

    Alex Rollin
    Moderator
    Post count: 27815

    Subcategory in permalinks is not possible.
    The default category (or the first select) of the listing is used to build the URL.

    domain/cpt/category/subcategory/postname should not be a problem. Make sure you have values set for the GD category base, and resave.

    See the doc here: https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/

    If there is still a problem, please write back with WP Admin credentials and login URL so we can check your settings.

    #462452

    Pepita Bos
    Full Member
    Post count: 78
    This reply has been marked as private.
    #462466

    Kiran
    Moderator
    Post count: 7069

    Hello Pepita,

    Parent & child category in same url causing permalink issues(404 not found), so only main(default) category is used in listing/category urls.

    Thanks,
    Kiran

    #462469

    Pepita Bos
    Full Member
    Post count: 78

    Hello Kiran,

    I am not sure I understand what you are saying. You are describing the problem, I think. But what is the solution? It worked earlier to show both the CPT and the category in the URL.

    I have accepted that Parent and Child category together is not a possibility – my question #2 – but what about the other problem and question #1? From previous.

    Anyway, I removed the Custom Structure and then set it up again. But I have made the problem worse. Now the permalink structure is as follows: http://www.xyz.com/CPT/postname. Category or subcategory has disappeared.

    I am sure I did something, but two questions:

    1) How can I have categories again?
    2) Is it possible to do the following: domain/CPT/category/subcategory/postname

    #462470

    Kiran
    Moderator
    Post count: 7069

    Hello,

    1) How can I have categories again?

    I have re-saved permalinks and now category added back to urls.

    2) Is it possible to do the following: domain/CPT/category/subcategory/postname

    No this is not possible, because it causing permalink issues.

    Let us know.

    Kiran

    #462485

    Pepita Bos
    Full Member
    Post count: 78

    Hi Kiran,

    Thank you so much.

    I must have resaved Permalinks at least 20 times, but it did not work for me. I happy it worked when you did it.

    We have a saying for that in Dutch: The eye of the master, fattens the horse. 🙂

    Thank you.

    RESOLVED

    #462662

    Kiran
    Moderator
    Post count: 7069

    Thanks for letting us know 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount