Support » Plugin: Wiki » Sidebar menu > list only single wiki category

  • Hello, is it possible to list only the wikis belonging to a specific wiki category in the sidebar (widget area)? There is no such option within the predefined widgets, but I assume there’s a way to acchieve this by hardcoding an if-elseif-else query into the theme’s sidebar template. Grateful for any input.

    https://wordpress.org/plugins/wordpress-wiki-plugin/

Viewing 4 replies - 1 through 4 (of 4 total)
  • To specify:

    [if] on a-wiki-category-index-page or a-wiki-page-in-given-category

    [then] display sidebar with a list of other wikis in that category only

    [else] display a default sidebar

    Am currently using the “Content Aware Sidebars” plugin to display sidebars, but although it recognizes the wiki section it won’t differentiate between wiki categories. Thus, I reckon hardcoding would be the solution.

    Hey Birgit,

    How are you doing today?

    For this you’d have to use combination of PHP and plugins. You can use plugins such as https://wordpress.org/plugins/widget-logic/ in combination with the plugin you’re using.

    This plugin allows you to use specific widgets with conditional logic. As wiki doesn’t have such widget you can use solution from my colleague on WPMU DEV forum here.

    Best regards,
    Bojan

    Thank you, Bojan. I will have to look into this tomorrow. I appreciate the links!

    Glad I could help 🙂

    Cheers,
    Bojan

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sidebar menu > list only single wiki category’ is closed to new replies.