WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Widget Logic conflict with PHP Code Widget (12 posts)

  1. koolkate
    Member
    Posted 3 years ago #

    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/

  2. alanft
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. koolkate
    Member
    Posted 3 years ago #

    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

  4. jhayrocas
    Member
    Posted 3 years ago #

    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.

  5. koolkate
    Member
    Posted 3 years ago #

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

  6. koolkate
    Member
    Posted 3 years ago #

    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.

  7. alanft
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  8. koolkate
    Member
    Posted 3 years ago #

    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.

  9. koolkate
    Member
    Posted 3 years ago #

    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.

  10. alanft
    Member
    Plugin Author

    Posted 3 years ago #

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

  11. koolkate
    Member
    Posted 3 years ago #

    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.

  12. koolkate
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic