WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Parse error eval code on line 1 (2 posts)

  1. suzyoo
    Member
    Posted 1 year ago #

    Hello, wonderful Allen! Okay, so...can't figure it out. I'm including all of my logic.
    Totally stumped. The error is being thrown a lot.

    'PHP Parse error: syntax error, unexpected '!' in /home1/suzytest/public_html/wp-content/plugins/widget-logic/widget_logic.php(284) : eval()'d code on line 1'

    Widget #1: 'is_front_page()'

    Widget #2: 'in_category( 139) || is_search && !is_front_page () && !is_page (31)'

    Widget #3: 'is_page( 31 )'

    Any ideas? Sorry if it's something ridic. Thank you so much for this great plugin.

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

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    It's likely the spaces between the function name and the brackets, so should look more like

    !is_page(31)

    instead of

    !is_page (31)

    and so on

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic