Hi Mat – I might be missing something right in front of me, but is there a way to show only the categories that the individual post relates to? Thank you.
Hi Mat – I actually noticed it’s bringing in all of the categories we’ve checked off rather than filtering for “Top level parent Category to use for this widget”.
If you would like to force the widget to only show categories which are first level decedents of the selected “Top level parent category” you may change the original code to the following:
I believe I may have found the issue. The option “Top level parent Category to use for this widget” is actually part of the “Display widget on every page” checkbox and only really works with that checked.
If you check that option, the menu will start filtering by that category.
I understand how this can be confusing when using Elementor because it disables the widget functionality which shows and hides options based on the selected ones, which makes the widget much less intuitive.
Hi David,
Using your current widget settings as a reference:
This may be accomplished by adding the following filter to your active theme’s functions.php file.
Have a great night!
Mat Lipe
Brilliant and glad I wasn’t going crazy not seeing something out of the box. Implemented to php and it works perfectly. Thanks again!
Hi Mat – I actually noticed it’s bringing in all of the categories we’ve checked off rather than filtering for “Top level parent Category to use for this widget”.
Hi David,
If you would like to force the widget to only show categories which are first level decedents of the selected “Top level parent category” you may change the original code to the following:
Have a great day!
Mat Lipe
Hi Mat – That doesn’t seem to be filtering for only the children of the parent “Topics” category. Thanks for your assistance!
Good Evening David,
I believe I may have found the issue. The option “Top level parent Category to use for this widget” is actually part of the “Display widget on every page” checkbox and only really works with that checked.
If you check that option, the menu will start filtering by that category.
I understand how this can be confusing when using Elementor because it disables the widget functionality which shows and hides options based on the selected ones, which makes the widget much less intuitive.
Have a great night!
Mat Lipe
Interesting and thank you! That did the trick.