Use postfix in field value for custom positions
Hi there,
I am using a custom field (named "cp_precio_pvp") with thousands separators and a postfix to display the "€" symbol thanks to the addons of the new API of ACF. It works great on the loop ad listing and in the single ad content, but when I try to display the values of "cp_precio_pvp" in my custom position and outside the loop or the ad content, the postfix is not shown and the thousands separator not working.
This is the code I am using in order to display :
PHP Code:
<span class="pvpslider"><?php echo get_post_meta( $post->ID, 'cp_precio_pvp', true ); ?></span>
I'm sure there needs to be another PHP reference in order to make it work with the prefix and thousands separator.
May I get some help please?
Thanks in advance!
Regards,
Chris