Site logo

[Support request] Post meta shows the value, not the label

Home Forums Support [Support request] Post meta shows the value, not the label

Home Forums Support Post meta shows the value, not the label

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2260293
    Raul

    Hi

    I use the Block Element and want to show the dynamic text -> Post Meta. But it displays the values, not the labels. So, for example, instead of “Australia”, it displays “AU” to the front user. (I don’t know if it matters, I’m using PODS for the custom post types).

    #2260530
    Ying
    Staff
    Customer Support

    Hi Raul,

    GP’s dynamic options just simply pull out the data, it does not modify the data.

    You might need to look into your CPT settings.

    #2260745
    Raul

    Hi

    Thanks for your fast reply.

    Of course, it doesn’t modify the data. Some data have both field value and field label, a common example being countries. For United States of America, field value is US. That’s good for the database, but there is also a field label which is the full name, which is better for humans. For example, few peoples know what is NL.

    In my case, I simply used PODS shortocde inside the loop, which returns the label: [pods]{@coach_country}[/pods]

    #2261772
    Ying
    Staff
    Customer Support

    GP pulls the value, not the label.

    Glad you figured it out!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.