Title: PHP snippets error
Last modified: April 16, 2020

---

# PHP snippets error

 *  [rightthings](https://wordpress.org/support/users/rightthings/)
 * (@rightthings)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/)
 * Hi!
    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:
    Quote [wbcr_snippet]:
   PHP snippets error (not passed the snippet ID) Unquote
 * What is wrong with it? Did I miss anything? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [rightthings](https://wordpress.org/support/users/rightthings/)
 * (@rightthings)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/#post-12686403)
 * P.s.
 * The same thing with js
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/#post-12688159)
 * Hello.
 * Most likely, the editor replaces the standard quotation marks on your site with
   something else.
 *  Thread Starter [rightthings](https://wordpress.org/support/users/rightthings/)
 * (@rightthings)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/#post-12692144)
 * 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](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?
 * Thanks.
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/#post-12693224)
 * 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.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3523853)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Temyk](https://wordpress.org/support/users/webtemyk/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-snippets-error/#post-12693224)
 * Status: not resolved