Widget Logic uses Conditional Tags to control what pages widgets appear on your site. These codes are placed in the widget logic box at the bottom of the widget
- is_front_page()
- widget will display only on your home page (if you have setup a static page),
- www.yourdomain.com
- is_home()
- widget will display only on your home page (if you have your blog feed as your homepage),
- www.yourdomain.com/
- is_page(‘page1′)
- widget will display only on “page1″
- www.yourdomain.com/page1
- is_page(array(‘page1′, ‘page3′ ))
- widget will display two pages: “page1″ and “page3″. You can add more page here.
- www.yourdomain.com/page1
- www.yourdomain.com/page3
- More codes
- WordPress Conditional_Tags