• rightthings


    I was going to put this snippet into all types of links on the page, i.e., picture link, button, and text link.
    So far, it works well only in-text link and only with ‘ instead of “. ([wbcr_snippet id=111])

    I tried both PHP snippet and Universal, but it always returns:
    [wbcr_snippet]: PHP snippets error (not passed the snippet ID)

    What is wrong with it? Did I miss anything? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rightthings



    The same thing with js

    Plugin Author Artem



    Most likely, the editor replaces the standard quotation marks on your site with something else.

    Thread Starter rightthings


    Yeap, it indeed affects the double quotation marks. I see it it MySQL page content. But it is not the point of my question.

    Check this sample page pls: https://tinyurl.com/ycycsbr2

    All of the buttons and the images links returns:

    [wbcr_snippet]: PHP snippets error (not passed the snippet ID)

    It is deployed from scratch and has only Woody, Astra, and Elementor plugins activated at this very moment.

    The sample page uses single quotation marks in the first two examples. ([wbcr_snippet id=‘Number‘])
    And the 3rd example is similar to the first one, but with the double quotation marks to show the difference. ([wbcr_snippet id=”Number”])

    I understand why replaced to " or to \” , since it could break the code. But the single quotation mark has not changed anywhere, as I can see it in MySQL database. Still, it executes only in the text links.

    Maybe the space between “snippet” and “id” in the snippet code ([wbcr_snippet id=’Number’]) could be the reason?

    What else could be the cause of this behavior? Any suggestions on how to fix it?


    Plugin Author Artem


    It is possible that the text is processed after it is received from the database. Can you show the code of the page where the shortcodes are inserted?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP snippets error’ is closed to new replies.