Title: Error with acf
Last modified: November 25, 2019

---

# Error with acf

 *  Resolved [spartan9802](https://wordpress.org/support/users/spartan9802/)
 * (@spartan9802)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-acf/)
 * Hello,
    I try to use snippets code with Advanced custom fields, but when I save
   this is the error I get on the whole site, I tested with another snippets plugin
   and it works. Could you bring a compatibility between the two plugins?
 * My Error:
    [https://pastebin.com/dweu30WC](https://pastebin.com/dweu30WC)
 * My Code:
    [https://pastebin.com/Es3wYUac](https://pastebin.com/Es3wYUac)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-acf/#post-12174869)
 * If you want to embed HTML output code in your snippets, you will need to wrap
   it in an appropriate action hook.
 * Where on your site is this code supposed to be displayed? If you would like to
   use it as a shortcode you need to place this line before any HTML code in your
   snippet
 * `add_shortcode( 'pricing_table, function () { ?>`
 * and this afterwards:
 * `<?php } );`

Viewing 1 replies (of 1 total)

The topic ‘Error with acf’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-acf/#post-12174869)
 * Status: resolved