WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Adding certain widgets to specific pages (3 posts)

  1. aldrin1
    Member
    Posted 9 months ago #

    Hello, Im trying to add a widget to my homepage as well as my "private parties" page. Here is my website: http://www.divadancenyc.com

    I am using this code: is_front_page() && !is_page('private-parties')
    but it doesn't work. Can anybody help?

    thanks

    Al

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

  2. mayalperry13
    Member
    Posted 9 months ago #

    I need help with this, as well. I am reading over the directions and steps and STILL can't figure it out. Most of these issues are not resolved so I'm guessing the creators have no intention of addressing these issues and just want us to figure it out for ourselves.

  3. MarkHedley
    Member
    Posted 8 months ago #

    This should be is_front_page() || is_page('private-parties')

    ie Is the page the home page OR private-parties page. Using && is checking if they are both is_front_page() AND !is_page('private-parties') which could be but I guess in your case not.

    Although I just realised you had !is_page('private-parties') means it would ONLY go on your home page unless they were both the same!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.