Changing how categories show up

This topic contains 12 replies, has 3 voices, and was last updated by  Lindsey Coyle 4 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #485815

    Lindsey Coyle
    Free User
    Post count: 91

    Can you tell me if we can change how the categories list?

    If you look at the link below you will see all categories are open and it looks quite messy. Is there a way to have them list only the main categories and then open the lesser categories when clicked on?

    http://www.airdrieexchange.com/gd-home/location/

    #485865

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    All the available options are in the shortcode builder (o block or widget, whichever you are using).

    For a start you might want to set the Max Subcats value to 0 to get some limitations in there.

    The last advanced option turns on/off the parent categories. You can try using these two together:

    
    
    
    [gd_categories title_tag="h4" post_type="0" sort_by="count" max_level="0" max_count="all" max_count_child="0" no_cat_filter="1"]
    [gd_categories title_tag="h4" post_type="0" sort_by="count" max_level="all" max_count="all" max_count_child="all"]
    
    #489858

    Lindsey Coyle
    Free User
    Post count: 91

    The code does not seem to work. Adding just max_level=”0″ and max_count_child=”0″ to gd_categories on a test page pretty much worked. The problem appears to be that there are 2 different kinds of categories “places” and “events” and a break is inserted between “places” and “events” and I couldn’t figure out how to resolve that.

    #489868

    Lindsey Coyle
    Free User
    Post count: 91
    This reply has been marked as private.
    #489882

    Alex Rollin
    Moderator
    Post count: 27815

    You can set the post type when you configure it. Is that what you are looking for?

    #489891

    Guust
    Moderator
    Post count: 29970

    “places” and “events” are not categories but custom post types [CPT].
    If you only want to list those, try this shortcode, adjust as required:

    [gd_cpt_listings title="Different listing types"]

    Or use the “GD > CPT Listings” widget or block.

    If you want to add titles to the “GD > Categories” shortcode for each CPT section, you can use this CSS, adjust as required:

    
    
    .gd-cptcat-gd_event::before {
        content: "Events";
        display: block;
    }
    .gd-cptcat-gd_event::before {
        content: "Places";
        display: block;
    }

    Thanks

    #492623

    Lindsey Coyle
    Free User
    Post count: 91
    This reply has been marked as private.
    #492647

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #492651

    Lindsey Coyle
    Free User
    Post count: 91
    This reply has been marked as private.
    #492666

    Guust
    Moderator
    Post count: 29970

    I was able to login now.
    Your Elementor plugin is preventing editing any of your pages.
    Seeks support from them or your host, or de-activate Elementor.
    Then let us know and then we can assist further.
    Thanks

    #492681

    Lindsey Coyle
    Free User
    Post count: 91

    I have deactivated it.

    #492771

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #493019

    Lindsey Coyle
    Free User
    Post count: 91

    This looks much better thank you!

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

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

Open Support Ticket