The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. suzyoo
    Posted 3 years 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.


  2. alanft
    Plugin Author

    Posted 3 years ago #

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


    instead of

    !is_page (31)

    and so on

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic