Support » Plugin: Widget Logic » Widget Logic conflict with PHP Code Widget

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor alanft


    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.

    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 🙂



    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.

    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 🙂

    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.


    Plugin Contributor alanft


    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.

    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.


    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.

    Plugin Contributor alanft


    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)?

    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.

    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.


    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.