Primary Category Filter

#369321
  • Resolved Joshua Larson
    Rank Math free

    Hello there!

    My name is Joshua Larson. I am a web developer working with Rank Math on our new site. We are utilizing Rank Math’s “Select Primary Term” for the categories on our posts.

    I was wondering if there was a way to add a PHP function that would allow us to only display the parent categories within the “Select Primary Term” dropdown on the block editor. Our use case, for example, has a parent category of “Philosophy” with child categories of “Pilgrimage”, “Philosophy”, “Group Practice”, etc. Under these circumstances, the dropdown in the Select Primary Term will display “Philosophy” twice, with no distinction between the Parent and the Child.

    For a better user experience with our team, is there a setting that we can set that will filter out these primary terms and only display the highest level parent categories? Or perhaps we can add some code to our functions.php to perform the same duty.

    Thank you for your help.

    Joshua Larson
    Himalayan Institute

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    We don’t have a filter that can be applied to only show the parent categories in the dropdown.

    ​​​​​​This process is built directly into the plugin source code and we look through the entire set of categories available.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Primary Category Filter’ is closed to new replies.