widget-options icon indicating copy to clipboard operation
widget-options copied to clipboard

Widget Shows on Single Post When All Categories Chosen

Open jg314 opened this issue 6 years ago • 0 comments

I posted this on https://wordpress.org/support/topic/widget-shows-on-single-post-when-all-categories-chosen/, but I'll post it here as well since it seems like this may be the right place:

"We recently started using your plugin for a number of client sites. We’re somewhat confused about how the “All Categories” option works under the “Taxonomies” within “Visibility”. Here’s the scenario:

  • We have a widget that we set to “Show on checked pages”
  • We checked “All Categories”
  • When we visit a single post of a custom post type the widget shows up

Upon digging into the code it looks like if “All Categories” is checked and the page is_single() even if it’s not a blog post the widget will still show. It seems like that should only be the case for blog posts, not custom post types.

Let me know if you need me to explain in more depth. Thanks for considering this."

jg314 avatar May 02 '18 13:05 jg314