I am using a combination of custom fields and the plugin Advanced Custom Field Widget to make “factboxes” which are tied to the various posts.
Overall this works fine. But when I use one of the many “random quote”/”testimonials” plugins, add a short code from the plugin into a custom field, and then have the custom field shown in a ACFW widget, then the widget shows this:
Parse error: syntax error, unexpected T_STRING in /home/www/(mydomainname)/wp-content/plugins/advanced-custom-field-widget/adv-custom-field-widget.php(566) : eval()'d code on line 1
After that the quote/testimonial shows as expected.
How can I get red of the warning and just have the quote shown?
What I ultimately whish to achieve is to have “quotes” or “testimonials” shown in a sidebar widget. However it is important for me to have full control over which particular quotes should be shown in the sidebar of which particular posts. Would ACFW be the proper tool for this?
- The topic ‘A short code in a custom field in a widget?’ is closed to new replies.