Site logo

[Resolved] Location -> Elements -> Catagories and Sub Catagories

Home Forums Support [Resolved] Location -> Elements -> Catagories and Sub Catagories

Home Forums Support Location -> Elements -> Catagories and Sub Catagories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2584995
    Gerik

    I’m going to add a bunch of subcategories. Is there a way to pick location and add location rules in elements and not have to enter every child, just by just adding the parent?

    https://ibb.co/S3WnyB8
    https://ibb.co/G0vv27m

    #2585034
    Fernando
    Customer Support

    Hi Gerik,

    There isn’t a display option for sub-categories or child_of. It is something we’re looking into.
    It’s possible to use the generate_element_display filter to set custom display conditions.

    Reference: https://docs.generatepress.com/article/generate_element_display/

    However, it would mean you have to “hard code” the parent category terms in the filter, so if you added new parents then you have to edit the code.

    Let me know if that’s an option and we can see if we can provide a snippet for that.

    #2585953
    Gerik

    maybe a check box that says “include all child_of?”

    #2586344
    Fernando
    Customer Support

    Unfortunately, for now, that’s not possible.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.