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.
Only Show Categories Assigned To Current Post
Resolved
We use cookies to allow login, checkout, and analyze site traffic. By continuing to use this website, you consent to the use of cookies in accordance with our cookie policy.
OnPoint Plugins
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
dmonico
Brilliant and glad I wasn’t going crazy not seeing something out of the box. Implemented to php and it works perfectly. Thanks again!
dmonico
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”.
OnPoint Plugins
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
dmonico
Hi Mat – That doesn’t seem to be filtering for only the children of the parent “Topics” category. Thanks for your assistance!
OnPoint Plugins
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
dmonico
Interesting and thank you! That did the trick.