Results 1 to 5 of 5

Thread: Use postfix in field value for custom positions

  1. #1
    Thread Starter
    Amateur kilador's Avatar
    Join Date
    Jan 2012
    Location
    Spain
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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

  2. #2
    dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    2,229
    Thanks
    89
    Thanked 593 Times in 491 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    arthemes.org - AppThemes plugins, tutorials, modifications and services

  3. #3
    Thread Starter
    Amateur kilador's Avatar
    Join Date
    Jan 2012
    Location
    Spain
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    2,229
    Thanks
    89
    Thanked 593 Times in 491 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    arthemes.org - AppThemes plugins, tutorials, modifications and services

  5. #5
    Thread Starter
    Amateur kilador's Avatar
    Join Date
    Jan 2012
    Location
    Spain
    Posts
    18
    Thanks
    3
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to use Postfix for sending emails
    By pablorodriguez in forum Help Using JobRoller
    Replies: 0
    Last Post: May 8th, 2013, 12:11 PM
  2. How to add extra custom field without classipress custom field menu ?
    By annecyloc in forum ClassiPress General Discussion
    Replies: 0
    Last Post: January 2nd, 2013, 02:54 PM
  3. Replies: 1
    Last Post: October 24th, 2012, 01:58 PM
  4. Replies: 18
    Last Post: October 9th, 2011, 10:24 PM