WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Field Widget
[resolved] A short code in a custom field in a widget? (5 posts)

  1. kilokilokilo
    Member
    Posted 1 year ago #

    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?

    Thanks!

    Kenneth, Denmark

    http://wordpress.org/plugins/advanced-custom-field-widget/

  2. athenaofdelphi
    Member
    Plugin Author

    Posted 11 months ago #

    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.

    Regards

    AthenaOfDelphi

  3. kilokilokilo
    Member
    Posted 11 months ago #

    Hi Christina

    Thanks for your reply!

    The quote plugin I am using is Stray Random Quotes (http://unalignedcode.wordpress.com/my-wordpress-plugins/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: http://wordpress.org/support/topic/plugin-advanced-custom-field-widget-shortcode-in-custom-field-possible?replies=5. I have tried your suggestion of replacing a line in the code but had no luck with that.

    Thanks for an otherwise great plugin!

    Kenneth

  4. athenaofdelphi
    Member
    Plugin Author

    Posted 11 months ago #

    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.

    Regards

    Athena

  5. athenaofdelphi
    Member
    Plugin Author

    Posted 11 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic