Show categories in url for detail page

This topic contains 4 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #527757

    tabitha@socialstreets.co
    Full Member
    Post count: 82

    Is it possible for the URL of detail pages to show the category to which is belongs? eg http://www.website.com/place/food-drink/restaurant/name-of-place? If so where would I define this?

    #527761

    Alex Rollin
    Moderator
    Post count: 27815
    #527762

    Kor
    Moderator
    Post count: 16516

    Hi there,

    Thanks for your post. You can display the category of the listings on the sidebar using this shortcode or widget “GD Output Location” https://wpgeodirectory.com/docs-v2/places/custom/#usage

    #527771

    tabitha@socialstreets.co
    Full Member
    Post count: 82

    Thanks @alexrollin. That’s great!

    1. However the URL is only showing /sub-category/name-of-venue and not category/sub-category/name-of-venue even though my custom URL for GD permalinks is /%category%/%postname%/ . Is there a reason why this could be?

    2. Also, in the backend of the Detail Page, the Categories selection field is in the main content block (rather than in WP sidebar where it usually is for blog posts) and it doesn’t allow me to select primary Category – maybe this is the problem? Where can I do this for a Detail page?

    3. Sometimes, when I create a new category, GD adds a number onto the end of the category slug indicating that I already have a duplicate Category. I’ve checked to see if the GD Category duplicates an existing WP Post category/tag and it doesnt seem to. Is there any other reason why some of my Categories are duplicates? Would the dummy content that GD provided have seeded a lot of categories I can’t see?

    http://www.romanroadlondon.com

    #527774

    Alex Rollin
    Moderator
    Post count: 27815

    1. It is not possible to have more than one category in the URL, only the default category.

    2. Yes, we use custom categories and they are in the content area of the page. If you use checkbox or multiselect you can visibly choose the default. If you use a select with only one choice then that category becomes the default.

    3. Slugs also include page slugs. Dummy content can create categories that you can delete, yes. See:
    https://wpgeodirectory.com/docs/better-search-replace-plugin/

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

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

Open Support Ticket