WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Text Widget
Manage by post category and page ID? (5 posts)

  1. aurorasentinel1
    Member
    Posted 1 year ago #

    I've successfully used ATW to not show a number of widgets in a post in category. Now I need to also suppress the same widgets from a specific page. Is this possible?

    http://wordpress.org/extend/plugins/advanced-text-widget/

  2. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    Can you walk me through the condition that you need? Is it just a specific post or the widget shouldn't show in a specific category + in a specific post that doesn't belong to this category? Let me know the details.

  3. aurorasentinel1
    Member
    Posted 1 year ago #

    I have the widget set to hide specific post category. I'd also like to hide on a couple of pages. Widget visibility is currently set as:

    Do NOT show on Post in Category
    Slug/Title/ID: 14

    I'd like to add a single page (not post) to the condition.

  4. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    In that case, you need to add a new custom condition in the plugin's settings. It should look like this:

    is_category($arg1) || is_page($arg2)

    After that, you'll be able to select your newly created condition in the widgets section. Also, select Do NOT Show on - the name of your new condition. Then add your IDs into the Slug/Title/ID field separated by pipe, like this:

    14|999

    where 14 is ID of a category and 999 - id of a page.

  5. Max Chirkov
    Member
    Plugin Author

    Posted 1 year ago #

    You can add multiple page or category IDs, just separate them with commas like this:

    14,15|997,998,999

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.