Uncaught Error: Object of class WP_Post could not be converted to string
-
Hello,
i have your plugin (PRO version) and as i was trying to display a ACF via shortcode i got the following error:
Fatal error: Uncaught Error: Object of class WP_Post could not be converted to string in /home/filters4/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:902 Stack trace: #0 /home/filters4/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(902): implode(‘, ‘, Array) #1 /home/filters4/public_html/wp-includes/shortcodes.php(355): acf_shortcode(Array, ”, ‘acf’) #2 [internal function]: do_shortcode_tag(Array) #3 /home/filters4/public_html/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(acf)(?…’, ‘do_shortcode_ta…’, ‘[acf field=”rel…’) #4 /home/filters4/public_html/wp-includes/class-wp-hook.php(310): do_shortcode(‘[acf field=”rel…’) #5 /home/filters4/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[acf field=”rel…’, Array) #6 /home/filters4/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(423): apply_filters(‘widget_text’, ‘[acf field=”rel…’, Array) #7 /home/filters4/public_html/wp-c in?/home/filters4/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php?on line?902
how do i solve this???
thank u
- The topic ‘Uncaught Error: Object of class WP_Post could not be converted to string’ is closed to new replies.