• Resolved Nivesham

    (@coucan)


    Hello

    I have inserted the php code snippets in my archive page theme template like the following: https://pastebin.com/ATXGcA31

    I have directed php code to hide the code snippets on certain pages containing a word in the URL. but php code plugin still displays this snippet in the page.

    Can you help me solve this issue?

    Thanks

    • This topic was modified 1 year, 9 months ago by Nivesham.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @coucan,

    I’m sorry about the confusion here. Unfortunately, at the moment, conditional logic rules are not applied when using the snippet as a shortcode. We are planning on improving support for this in a future version but for now you will have to use one of the built-in auto-insert locations to use conditional logic.

    If we can help find a better solution for you don’t hesitate to reach out using the form at https://wpcode.com/contact

    Thread Starter Nivesham

    (@coucan)

    Hi,

    PHP code doesn’t auto-insert any snippets on Tag pages. With logic condition or without.

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @coucan,

    You should be able to auto-insert snippets using the “Categories, Archives, Tags, Taxonomies” options – are none of those working for you?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Try to hide html snippets on specific pages, but PHPcode plugin still display it’ is closed to new replies.