OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
      • Basic Version
        • Documenation
        • Usage
        • Developer Docs
      • PRO Version
        • Demo
        • Usage
        • Developer Docs
    • Go Live Update Urls
      • Basic Version
        • Documenation
        • Usage
        • Troubleshooting
      • PRO Version
        • Demo
        • Usage
        • URL History
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Display Post Under Top Level Categories

Resolved

Requested: 7 years and 2 months ago

Hi i’m pulling my hair out and really thought your plugin would resolve what i need.

I have a custom taxonomy called resourse categories, all i want is for the sidebar to display all my categories and all the single posts that belong to the category. The only time posts are shown is if they are in a sub category under the parent category. I thought by clicking the checkbox ‘Display assigned Resources under Resource Categories’ all posts would be shown whether or not they belong to parent or sub categories.

Plugin: Advanced Sidebar Menu

  1. Avatar for tamaratamara

    7 years and 2 months ago

    The Url i supplied shows the menu on the left, the category ‘disease in wild tigers’ has 4 posts associated with it that i want to display under the category, the ones underneath all have child categories and they are showing the posts

  2. Avatar for OnPoint PluginsOnPoint Plugins

    7 years and 2 months ago

    Hi Tamara,

    This option to display posts under the highest level category is currently slated for version 3.5.0 of this plugin.

    In the meantime, if you add the following filter to your active theme’s functions.php file, the posts will display under the parent categories as well as sub categories.

    add_filter( 'advanced-sidebar-menu/menus/category/get-list-categories-args', 'posts_under_parent_categories', 10, 3 );
    function posts_under_parent_categories( $args, $level, Advanced_Sidebar_Menu_Menus_Category $menu ) {
       if ( Advanced_Sidebar_Menu_Pro__Widget_Options__Category__Display_Posts::instance()->checked( Advanced_Sidebar_Menu_Pro__Widget_Options__Category__Display_Posts::NAME, $menu->get_widget_instance() ) ) {
          $args['walker'] = new Advanced_Sidebar_Menu_Pro__Walkers__Display_Posts( $menu->get_widget_instance() );
       }
    
       return $args;
    }
    
    

    Have a great weekend!

    Mat Lipe

  3. Avatar for tamaratamara

    7 years and 2 months ago

    OMG!!! Thankyou soooooooo much! You’re an absolute star, so many times and with other paid plugins i’ve asked for something and been told no can do or pay us to add the functionality. If there;’s a link to add a review send it over and i’ll write one.

     

    Thanks again Mat and have a good weekend yourself!!!!

  4. Avatar for OnPoint PluginsOnPoint Plugins

    7 years and 2 months ago

    Hi Tamara,

    Not a problem at all. You may leave a review here.

    Thanks again!

    Mat Lipe

  5. Avatar for jonathanwantyjonathanwanty

    6 years and 11 months ago

    Hi Mat,

    And how can we exclude a post from a sub category to the parent ?

    Thank you

  6. Avatar for OnPoint PluginsOnPoint Plugins

    6 years and 11 months ago

    Hi Jonathan,

    Version 3.4.1 will exclude posts from child categories by default.

    There is also a new filter in case of additional customization needed.

    Have a great day!

    Mat Lipe

  7. Avatar for jonathanwantyjonathanwanty

    6 years and 11 months ago

    Thank you for your responsiveness !

  8. Avatar for OnPoint PluginsOnPoint Plugins

    6 years and 7 months ago

    Hello,

    I wanted to top in to mention that version 3.5.0 has now been released which supports this feature out of the box without any filters.

    Enjoy!

    Mat Lipe

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2025 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact