Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Max Chirkov

    (@maxchirkov)

    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.

    Thread Starter aurorasentinel1

    (@aurorasentinel1)

    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.

    Plugin Author Max Chirkov

    (@maxchirkov)

    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.

    Plugin Author Max Chirkov

    (@maxchirkov)

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

    14,15|997,998,999

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Advanced Text Widget] Manage by post category and page ID?’ is closed to new replies.