WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Need code to post on pages and posts at same time (3 posts)

  1. j_folkes
    Member
    Posted 1 year ago #

    Absolutely love this extension! Thank you for that!

    I have a widget that I want to appear on the services page and all the posts that are in the category 'Site FAQs'. I can get the widget to appear on the services page with is_page('Services'), but i can't figure out what to add to it to also have the widget appear on the Site FAQs category posts. Is this possible to do?

    Thanks so much in advance,

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

  2. Jason Manheim
    Member
    Posted 1 year ago #

    is_page( 'Services' ) || ( is_single() && in_category( 'Site FAQs' ) )

    That should do the trick.

  3. j_folkes
    Member
    Posted 1 year ago #

    Worked perfectly! Thank you so much!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.