Support » Plugin: Advanced Custom Field Widget » A short code in a custom field in a widget?

  • Resolved kilokilokilo


    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?


    Kenneth, Denmark

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author athenaofdelphi


    Hi Kenneth,

    Sorry for the delay, I don’t get notifications from here when someone posts, this is why I ask users to post on my blog.

    Anyhow, can your provide a bit more detail… which random quote plugin for example so I can look at setting up a test on my development blog.

    Whether this is the proper tool, based on what you said, I believe you should be able to achieve what you would like, but I do need more information about the plugin you’re using for the quotes.



    Hi Christina

    Thanks for your reply!

    The quote plugin I am using is Stray Random Quotes ( I have tried other quote/testimonial plugins (don’t remember which right now) and they all give the same error as above.

    As mentioned earlier the quote shows as expected after the warning.

    My problem seems to be related to one posted earlier in this forum: I have tried your suggestion of replacing a line in the code but had no luck with that.

    Thanks for an otherwise great plugin!


    Plugin Author athenaofdelphi


    Hi Kenneth,

    I’d like to send you a version of the widget that may fix this… can you drop me an email to “a t h e n a at o u t e r hyphen r e a c h e s dot c o m“. I’ll send you a version of the widget that should fix this… if not, I’ll set up a test on my development blog and look at sorting it out for you. More details in the email when I reply back directly to you.



    Plugin Author athenaofdelphi


    Following an email conversation, this issue has been resolved and Kenneth is happy with the solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘A short code in a custom field in a widget?’ is closed to new replies.