List all subcategories of particular categories in CPT

This topic contains 5 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #476442

    weedfix
    Expired Member
    Post count: 4

    Hi,

    How do I get all subcategories of particular categories which are created by CPT? Can you please help me out?
    Is there any shortcode or query to do so?

    #476495

    Alex Rollin
    Moderator
    Post count: 27815

    You would need a custom function for that.

    The available options for GDV1 are shown here:

    https://wpgeodirectory.com/docs/core-shortcodes/#popcats

    #476614

    weedfix
    Expired Member
    Post count: 4

    Can you please tell me how to achieve this in gdv2?

    #476720

    Alex Rollin
    Moderator
    Post count: 27815

    It is not possible in V2 either without a customization.

    GD Categoris for GDV2 has a lot more options than in GDV1, but it is still not possible to limit the selection to a particular parent category.

    Can you say more about what you are trying to do?
    Because if you are looking for a query then you can open up the plugin and look in a number of places to see how category queries are done.

    Most members want to display either all the categories (on location page = browse all) or just the assigned categories (for example on a detail page = browse similar).

    I can picture what you are looking for in my head, but, where would you use it? on a detail page? Based on the category of the detail page? Or just trying to show a certain specific category?

    #476804

    weedfix
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #476908

    Alex Rollin
    Moderator
    Post count: 27815

    Well, that is what GD Categories does for V1 and V2 but you cannot single out a parent category.

    Try it out and let us know what you think:

    https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_categories

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount