Forums

[plugin: widget-logic]php code/conditionals help (2 posts)

  1. VengeanceFury
    Member
    Posted 1 year ago #

    I'm using widget-logic plugin and I need some help with conditional statements: I am trying to make a widget display only on 3 specific pages....and I am not sure how to do this. I've tried this:
    if (is_home()) {} elseif (is_page('3')) {} elseif (is_page('49')) {}
    I've also tried this:
    is_page('3''49')
    and this:
    is_page('3') or is_page('49') or is_home()
    and this:
    is_page('3') || is_page('49') || is_home()
    I'm pretty new to php...I'm learning through tweaking the given code within wordpress docs.
    Thanks for any help anyone gives.

  2. alanft
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic