Title: Widget Logic conflict with PHP Code Widget
Last modified: August 19, 2016

---

# Widget Logic conflict with PHP Code Widget

 *  [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/)
 * I love both of these widgets but after installing PHP Code Widget, Widget Logic
   no longer has any effect.
 * Do you know of something I can do to rectify this situation? Clicking the reset
   code at the bottom doesn’t help.
 * Thanks,
 * Kate
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751264)
 * i’d have to check this out – the last time anyone mentioned Otto’s PHP widget
   to me it wasn’t about it not working at all with WL. However I can see that he
   has been keeping his code up to date – where mine is woefully behind the times.
 * [http://wordpress.org/support/topic/plugin-widget-logic-doesnt-play-well-with-php-code-widget](http://wordpress.org/support/topic/plugin-widget-logic-doesnt-play-well-with-php-code-widget)
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751533)
 * Thanks, alanft, for your prompt response.
 * I’ve just read through the previous forum post. I’ve had the widget disappear
   from the dashboard within WordPress but it stayed on the site. I dragged it back
   over and so far so good. But that wasn’t my main concern….
 * I am using the php widget to bring up recent posts. I know there is already a
   widget for this but I want to have them appearing on a post-it note.
 * My only problem is that the widget logic coding is no longer helping to control
   where the widgets appear. They all just show up on every page, uninvited.
 * They’re both great resources and I would love to be able to use both. I’m really
   hoping I don’t have to resort to the boring Recent Posts widget 🙂
 * Thanks
 * Kate
 *  [jhayrocas](https://wordpress.org/support/users/jhayrocas/)
 * (@jhayrocas)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751647)
 * Any updates on this issue? I’m planning on using the WordPress conditional tags
   on my blog and I’m considering using this plugin instead of hard-coding it into
   Thesis.
 * I also use a PHP Code widget but the one by Chris Pettitt.
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751654)
 * I haven’t had any resolve as yet. I’m using the PHP Widget by Otto. I might give
   Chris Pettitt’s a go and see if makes any difference.
 * They’re both great plugins. I hope we can get them to work together soon 🙂
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751681)
 * I have just tried Chris Petitt’s Samsarin PHP Widget and I still can’t get the
   coding in Widget Logic to work.
 * Alanft, have you had a chance to check it out?
 * Also, the box for Widget Logic doesn’t show up on the Samsarin PHP Widget, so
   I would really like to stick with PHP Widget.
 * I really hope we can get the two working together 🙂 Your help would be appreciated.
 * Thanks.
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751682)
 * I’m still not seeing any conflict with otto’s widget on my own basic wordpress
   install.
 * i’ve wp 3.0.3, otto’s widget v2.1, my own WL 0.47. i set up a basic widget to
   show phpinfo() on a specific author page. working ok.
 * give me steps to repeat a problem and I’ll see what i can do.
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751683)
 * Thanks for your reply.
 * Unfortunately, there aren’t any steps I can offer to repeat the problem. It’s
   as simple as when the php widget is there, Widget Logic doesn’t work and when
   it’s not there, it does.
 * I have wp 3.0.1, otherwise the rest is the same. I’m using a theme created with
   Artisteer.
 * Thanks.
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751684)
 * Hi Alanft
 * Further to my last post –
 * I’ve played around with it a little more and it appears that the php widget only
   interferes with Widget Logic if the php widget is placed ahead of the other widgets.
 * If I place the php widget underneath the other widgets, all widgets above it 
   respond to WL.
 * But if the php widget is above the other widgets and has widget logic coding 
   in it, the other widgets underneath it respond to widget logic, if they have 
   the same WL coding as the php widget.
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751685)
 * Cheers. I’ll have to double check but my test was a widget at the top of the 
   sidebar and all seemed well.
 * Meanwhile does the issue persist in a basic theme (like the wp default)?
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751687)
 * I have just tried it locally on my computer with the basic wp default theme and
   it was doing the same thing.
 * Then I tried it without the coding in the php widget (just text) and it worked
   properly, so it seems the code within the php widget is affecting it. Grrr 😐
 * Thanks for your help (and patience!). I’ll have a play around with the coding
   and see if I can fix it.
 *  Thread Starter [koolkate](https://wordpress.org/support/users/koolkate/)
 * (@koolkate)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751688)
 * Yep, that was the problem. I’ve found another variation of code that does what
   I need it to do and doesn’t interfere with WL.
 * Yay!
 * Thanks again, Alanft 🙂

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Widget Logic conflict with PHP Code Widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [koolkate](https://wordpress.org/support/users/koolkate/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/widget-logic-conflict-with-php-code-widget/#post-1751688)
 * Status: not resolved