Hi!
I've just tried to set shortcode to see acf field on custom type post content model, but if i set [wpv-post-field name="name_of_field"], in front end i see only a number (it seems an id, but in options the field results are set on post content and not on id post).
How can i resolve it?
Thanks!
You can refer to ACF methods to display ACF fields, that would be the best approach.
The wpv-post-field shortcode is made to display simple Custom Fields if required that are not made by Toolset but - only simple fields - will display expected content.
More often than not third party fields (and also Toolset Fields) have special features that make them "not simple", and in this case, usually you can't successfully display them with this shortcode, but need the particular way of displaying the Fields as recommended and offered by the software that provides those fields.
Let's say a Toolset Checkboxes field, you could only display that field properly by using Toolset ShortCodes or very complex Custom Code.
No other software, unless integrating, would allow displaying that particular fields as expected because it uses complex, Toolset Proprietary features.
Similar to other fields of other plugins, where for complex fields you'll need a particular way of rendering it, generally provided by the software that adds the field.
Hence if your ACF field is anything more complex than a simple input, it will likely not output the expected content
You should instead use and refer to ACF methods to display those contents.
Hi!
Thanks for your reply.
I've tried to use default code [acf field='name_field'] but toolset show:
Recoverable fatal error: Object of class WP_Post could not be converted to string in /var/www/vhosts/over2000membership.com/httpdocs/wp-includes/shortcodes.php on line 325
Did I do something wrong?
Thanks
Well, that is not Toolset, but ACF problem, I think?
Why would Toolset be responsible for this error if you get the error when you use an ACF SHortCode?
I suggest reporting this issue to ACF. They will be able to help you.
We can help here with Toolset issues.
Is there an issue that is only happening with Toolset or when Toolset is active?