Q and A Category Widget

I would like to have the Q & A category widget only display parent categories – not child categories. Is this possible? Thanks for the help.

  • Mason
    • DEV MAN’s Sidekick

    Hiya Ciara,

    There’s no way to do this without some custom coding.

    If you’re interested, you’d need to open up qa/core/widgets.php and by adding a new line at 226 and add the following:

    'depth' => 1,

    Of course, any update to the plugin would remove this customization, but other than using other widgets (such as a custom post type/category widget or text widget with manual links) that’s the only way I can think of.

    Thanks!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.