• Hello,

    I have a problem.

    In code source :
    T_STRING), expecting ‘)’ in /var/www/html/contenu/plugins/widget-logic/widget_logic.php(381) : eval()’d code on line 1

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chriswp06

    (@chriswp06)

    Hello,

    Exemple Snippet :

    is_category( array( 972, ‘dossiers-football-972’, ‘interviews-football-972’ , ‘portraits-football-972’, ‘a-la-une-football-972’, ‘actualites-football-972’) ) || (is_single() && in_category(‘972’))

    Thanks

    Thread Starter chriswp06

    (@chriswp06)

    Yes 5.7.2

    Thread Starter chriswp06

    (@chriswp06)

    Hello,

    I also put this code :
    (is_single() && in_category(972))

    Not
    (is_single() && in_category(‘972’))

    Would that come from there?

    Thread Starter chriswp06

    (@chriswp06)

    Is the Display logic errors to admin box in the back office can help me find errors?

    Thread Starter chriswp06

    (@chriswp06)

    It’s possible to do :

    (is_single() && in_category(‘972’)) || (is_single() && !in_category(‘11’))

    or

    (is_single() && in_category(‘972’)) && !in_category(‘11’))

    or other ?

    Thanks

    Thread Starter chriswp06

    (@chriswp06)

    Hello,

    Thanks for this answers.

    How do you do when you have an item in multiple categories??

    What is the code to use ??

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Eval code’ is closed to new replies.