Sub categories

This topic contains 5 replies, has 2 voices, and was last updated by  Joe Bjorklund 4 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #499382

    Joe Bjorklund
    Full Member
    Post count: 163

    Hello
    I was hoping that you could tell me how to hide sub categories on the location page. My goal is to list all 50 states and then when a state is clicked on, it will go to that category and show the cities in that state. I have them built as sub categories of the state. Thank you

    #499431

    Alex Rollin
    Moderator
    Post count: 27815

    If you mean the display of GD Categories, then you would just need to adjust the GD Categories options to set max subcats to 0.

    Edit the location page to adjust that:
    https://wpgeodirectory.com/docs-v2/templates/location/

    #499572

    Joe Bjorklund
    Full Member
    Post count: 163

    Thank you. I will try that. How do I make it work so when they click on the category then they go to a page with all of the sub categories rather than the actual listings in that main category. For example, they are on the location page and all 50 states are listed there. They click on Texas. I want them to get to a page that shows the sub categories of Dallas, Houston etc. When they click on Dallas, they go to the listings in that sub category. I hope that makes sense. Thank you

    #499614

    Joe Bjorklund
    Full Member
    Post count: 163

    I understand that I put it on the location page but do not know what the shortcode is or where to put it. Thank you.

    #499621

    Alex Rollin
    Moderator
    Post count: 27815

    You can use the shortcode builder to create it.

    I recommend you try several different versions to see what they do.

    You can use one type on the Location page and another type on the archive page template.

    https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/
    https://wpgeodirectory.com/docs-v2/templates/archive/
    https://wpgeodirectory.com/docs-v2/templates/location/

    #499622

    Joe Bjorklund
    Full Member
    Post count: 163

    OK, I will give it a try. Still have no idea how this works but I will figure it out.

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

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

Open Support Ticket