WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic Visual
Cannot take conditional code (4 posts)

  1. David Tierney
    Member
    Posted 1 year ago #

    I put this in as Conditional Tag Code:

    is_page_template( 'page-template.php' )

    and when it saves, it automatically changes it to this:

    is_page_template( \'page-template.php\' )

    Which does not work.

    http://wordpress.org/extend/plugins/widget-logic-visual/

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    I've never used this plugin, but does Travis Smith's fix here help? http://wordpress.org/support/topic/plugin-widget-logic-visual-warning

  3. David Tierney
    Member
    Posted 1 year ago #

    Thanks. I tried that.

    Line 48 of that file does not match up to anything. I found what would likely be the line that would be swapped out with what he showed, and that did not work either.

    Thanks though for giving it a try.

  4. mrwweb
    Member
    Posted 1 year ago #

    +1 It works after one save, but if you save again, everything gets escaped again and you get ...( \\\'whatever...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.