Viewing 5 replies - 1 through 5 (of 5 total)
  • what about just the single word ‘true’ (no quotes)

    Thread Starter urlatore

    (@urlatore)

    Thanks for reply, this is the condition that makes it widget disappear :
    if ($ _SESSION ['post_city_id'] == 'xx')

    alanft

    (@alanft)

    that’s not a complete statement that returns true or false, and is probably causing a PHP error failing entirely.

    what you are after is

    return ($ _SESSION ['post_city_id'] == 'xx');

    and you can go even simpler than that as if you don’t include a return statement in your code, WL puts one in for you (and the brackets and the semicolon). So you can just use

    $ _SESSION ['post_city_id'] == 'xx'

    tranc13

    (@tranc13)

    Hey guys,

    I am just installed this plug in on my site Como Conquistar Um Homem and then I don´t find this plug in working. Thanks

    alanft

    (@alanft)

    (and there shouldn’t be a space between $ and _SESSION)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘widget disappears’ is closed to new replies.