This topic has 7 replies, 3 voices, and was last updated 9 years by fundlr.

  • Author

    Tagged: ,

  • #59583
     fundlr
    Participant

    Hi,

    I’m using a Post Grid, and displayed categories filters on top of the grid (Show filters: yes please!)
    So it displays all categories. (in the taxonomy order).
    So, 2 questions:

    1. Is it possible to change the display order?

    2. It displays all categories, parents and children, without distinction.
    -> Is is possible to display only top level categories?
    Then when clicking on a parent category, it displays posts from this category as well as from children categories?

    I guess it will require modifying js_composer\include\templates\shortcodes\vc_basic_grid_filter.php, around lines 2~11
    And some other JS files, such as js_composer\assets\js\components\vc_grid.js, around lines 162~172

    Thanks !

    #59636
     sharmstr
    Moderator

    They are probably using get_terms. You can filter that with orderby and parent: https://codex.wordpress.org/Function_Reference/get_terms

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #90166
     etwark
    Participant

    sorry how you solved i need also to set category filters.

    #90169
     fundlr
    Participant

    Finally I did not use the default VC component.
    I used FacetWP to get my filters done.

    #90174
     etwark
    Participant

    Do you know something less exspensive..?

    #90175
     fundlr
    Participant

    No sorry.
    You might want to ask to VC support team if you can tweak their filters behaviour.

    #93170
     etwark
    Participant

    Sorry @fundir i want also to use facetWP for filters but i need to know i need filter that do something like this

    1) Main Category –> Restaurant
    Child category –> Pizza

    I want that when an user want to search a restaurant that do pizza in the dropdown menu apper all the child categories and not the main.

    The main category is something that help me to group all the articles..but the important filters are the child categories

    With this plugin you can do this..?

    Thanks

    #93171
     fundlr
    Participant

    @etwark

    Please address your questions to the relevant support team. (FaceWP in your case)
    (i’m just a user, not part of any support team)

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

The forum ‘Plugins questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?