by Widget Logic
4.4 (188 reviews)
Widget Logic
Widget Logic lets you control on which pages widgets appear using WP's conditional tags.
Compatible with WP 6.9
v6.08
Current Version v6.08
Updated 1 week ago
Last Update on 12 Jan, 2026
Synced 7 hours ago
Last Synced on
Rank
#425
—
No change
Active Installs
100K+
-25.2%
KW Avg Position
N/A
—
No change
Downloads
3.2M
+1 today
Support Resolved
50%
—
No change
Rating
88%
Review 4.4 out of 5
4.4
(188 reviews)
Next Milestone 200K
100K+
200K+
143
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro
Unlock Exact Install Count
See the precise estimated active installs for this plugin, calculated from real-time ranking data.
- Exact install estimates within tiers
- Track install growth over time
- Milestone progress predictions
Need 67,773 more installs to reach 200K+
Rank Changes
Current
#425
Change
Best
#
Downloads Growth
Downloads
Growth
Peak
Upgrade to Pro
Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.
Upgrade NowReviews & Ratings
4.4
188 reviews
Overall
88%
5
153
(81%)
4
8
(4%)
3
2
(1%)
2
2
(1%)
1
23
(12%)
Tracked Keywords
Showing 0 of 0| Keyword | Position | Change | Type | Updated |
|---|---|---|---|---|
| No keyword data available yet. | ||||
Unlock Keyword Analytics
Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.
- Full keyword position tracking
- Historical ranking data
- Competitor keyword analysis
Support Threads Overview
Resolved
Unresolved
2
Total Threads
1
Resolved
1
Unresolved
50%
Resolution Rate
Track This Plugin
Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.
Start Tracking FreePlugin Details
- Version
- 6.08
- Last Updated
- Jan 12, 2026
- Requires WP
- 3.0+
- Tested Up To
- 6.9
- PHP Version
- 5.4 or higher
- Author
- Widget Logic
Support & Rating
- Rating
- ★ ★ ★ ★ ☆ 4.4
- Reviews
- 188
- Support Threads
- 2
- Resolved
- 50%
Keywords
Upgrade to Pro
Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.
Upgrade NowSimilar Plugins
WP Adminify – White Label WordPress, Admin Menu Editor, Login Customizer
7K+ installs
#2,736
Master Addons For Elementor – White Label, Free Widgets, Hover Effects, Conditions, & Animations
40K+ installs
#929
Qi Addons For Elementor
200K+ installs
#253
MW
MW WP Form
200K+ installs
#262
WPFront Scroll Top
200K+ installs
#270
Frequently Asked Questions
Common questions about Widget Logic
Switch to the default theme. If the problem goes away, your theme may be interfering with the WP conditional tags or how widgets work
Try the wp_reset_query option. If your theme performs custom queries before calling the dynamic sidebar this might help.
Try a different 'Load logic' point. Most wordpress conditional tags only work 'after query variables set', but some plugins may require evaluation earlier or later.
The 'Evaluate widget logic more than once' option may be needed if you have to use an early 'Load logic' point.
I'm getting errors that read like "PHP Parse error… … eval()'d code on line 1"
You have a PHP syntax error in one of your widget's Widget Logic fields. Review them for errors. You might find it easiest to check by using 'Export options' and reading the code there (Though be aware that single and double quotes are escaped with multiple backslash characters.)
If you are having trouble finding the syntax error, a simple troubleshooting method is to use 'Export options' to keep a copy and then blank each Widget Logic field in turn until the problem goes. Once you've identified the problematic code, you can restore the rest with 'Import options'.
It's causing problems with Woo Commerce / other popular plugin
This is often, not always, fixed by trying the different 'Load Logic' options. The 'after query variables set' option looks like it might be a better default, try it.
What's this stuff in my sidebar when there are no widgets?
Since v .50 the widget logic code runs such that when dynamic_sidebar is called in a theme's code it will 'return false' if no widgets are present. In such cases many themes are coded to put in some default sidebar text in place of widgets, which is what you are seeing.
Your options, if you want this default sidebar content gone, are to either edit the theme, or as a work around, add an empty text widget (no title, no content) to the end of the sidebar's widget list.
How do I get widget X on just my 'home' page? (Or on every page except that.)
There is some confusion between the Main Page and the front page. If you want a widget on your 'front page' whether that is a static page or a set of posts, use is_front_page(). If it is a page using is_page(x) does not work. If your 'front page' is a page and not a series of posts, you can still use is_home() to get widgets on that main posts page (as defined in Admin > Settings > Reading).
Logic using is_page() doesn't work
I believe this is fixed in 5.7.0. Let me know if that is not the case.
If your theme calls the sidebar after the loop you should find that the wp_reset_query option fixes things. This problem is explained on the is_page codex page.
How do I get a widget to appear both on a category page and on single posts within that category?
Take care with your conditional tags. There is both an in_category and is_category tag. One is used to tell if the 'current' post is IN a category, and the other is used to tell if the page showing IS for that category (same goes for tags etc). What you want is the case when:
(this page IS category X) OR (this is a single post AND this post is IN category X)
Try the wp_reset_query option. If your theme performs custom queries before calling the dynamic sidebar this might help.
Try a different 'Load logic' point. Most wordpress conditional tags only work 'after query variables set', but some plugins may require evaluation earlier or later.
The 'Evaluate widget logic more than once' option may be needed if you have to use an early 'Load logic' point.
I'm getting errors that read like "PHP Parse error… … eval()'d code on line 1"
You have a PHP syntax error in one of your widget's Widget Logic fields. Review them for errors. You might find it easiest to check by using 'Export options' and reading the code there (Though be aware that single and double quotes are escaped with multiple backslash characters.)
If you are having trouble finding the syntax error, a simple troubleshooting method is to use 'Export options' to keep a copy and then blank each Widget Logic field in turn until the problem goes. Once you've identified the problematic code, you can restore the rest with 'Import options'.
It's causing problems with Woo Commerce / other popular plugin
This is often, not always, fixed by trying the different 'Load Logic' options. The 'after query variables set' option looks like it might be a better default, try it.
What's this stuff in my sidebar when there are no widgets?
Since v .50 the widget logic code runs such that when dynamic_sidebar is called in a theme's code it will 'return false' if no widgets are present. In such cases many themes are coded to put in some default sidebar text in place of widgets, which is what you are seeing.
Your options, if you want this default sidebar content gone, are to either edit the theme, or as a work around, add an empty text widget (no title, no content) to the end of the sidebar's widget list.
How do I get widget X on just my 'home' page? (Or on every page except that.)
There is some confusion between the Main Page and the front page. If you want a widget on your 'front page' whether that is a static page or a set of posts, use is_front_page(). If it is a page using is_page(x) does not work. If your 'front page' is a page and not a series of posts, you can still use is_home() to get widgets on that main posts page (as defined in Admin > Settings > Reading).
Logic using is_page() doesn't work
I believe this is fixed in 5.7.0. Let me know if that is not the case.
If your theme calls the sidebar after the loop you should find that the wp_reset_query option fixes things. This problem is explained on the is_page codex page.
How do I get a widget to appear both on a category page and on single posts within that category?
Take care with your conditional tags. There is both an in_category and is_category tag. One is used to tell if the 'current' post is IN a category, and the other is used to tell if the page showing IS for that category (same goes for tags etc). What you want is the case when:
(this page IS category X) OR (this is a single post AND this post is IN category X)
How do I get a widget to appear when X, Y and Z?
Have a go at it yourself first. Check out the 'Writing Logic Code' section under Other Notes.
Why is Widget Logic so unfriendly, you have to be a code demon to use it?
This is sort of deliberate. I originally wrote it to be as flexible as possible with the thought of writing a drag'n'drop UI at some point. I never got round to it, because (I'm lazy and) I couldn't make it both look nice and let you fall back to 'pure code' (for the possibilities harder to cater for in a UI).
The plugin Widget Context presents a nice UI and has a neat 'URL matching' function too.
Widgets appear when they shouldn't
It might be that your theme performs custom queries before calling the sidebar. Try the wp_reset_query option.
Alternatively you may have not defined your logic tightly enough. For example when the sidebar is being processed, in_category('cheese') will be true if the last post on an archive page is in the 'cheese' category.
Tighten up your definitions with PHPs 'logical AND' &&, for example:
Have a go at it yourself first. Check out the 'Writing Logic Code' section under Other Notes.
Why is Widget Logic so unfriendly, you have to be a code demon to use it?
This is sort of deliberate. I originally wrote it to be as flexible as possible with the thought of writing a drag'n'drop UI at some point. I never got round to it, because (I'm lazy and) I couldn't make it both look nice and let you fall back to 'pure code' (for the possibilities harder to cater for in a UI).
The plugin Widget Context presents a nice UI and has a neat 'URL matching' function too.
Widgets appear when they shouldn't
It might be that your theme performs custom queries before calling the sidebar. Try the wp_reset_query option.
Alternatively you may have not defined your logic tightly enough. For example when the sidebar is being processed, in_category('cheese') will be true if the last post on an archive page is in the 'cheese' category.
Tighten up your definitions with PHPs 'logical AND' &&, for example: