Forums

Widget Logic
[resolved] how to show the plugin in selected multiple pages? (3 posts)

  1. ramkumaritrvs
    Member
    Posted 10 months ago #

    I would like to show a plugin in a specific page's sidebar only.

    For Example: I have the pages like ..

    ->home
    ->about us
    --->sub page 1
    --->sub page 2
    --->sub page 3
    --->sub page 4
    here i want to show,the sample plugin in subpage 1 & sub page 4 *only* and not to all other pages.i tried is_page('sub page 1','sub page 4') but it's not working .how to get this one?please help me.

    http://wordpress.org/extend/plugins/widget-logic/

  2. vtxyzzy
    Member
    Posted 10 months ago #

    Give this a try:

    is_page('sub page 1') || is_page('sub page 2')

  3. ramkumaritrvs
    Member
    Posted 10 months ago #

    it's working perfectly.Thank you so much vtxyzzy :)

Reply

You must log in to post.

About this Plugin

About this Topic