Site logo

Archived topic

Post meta shows the value, not the label

3 replies · Started by Raul on June 21, 2022

Viewing posts 1–4 of 4

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).

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.

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]

GP pulls the value, not the label.

Glad you figured it out!

This archived topic is closed to new replies.