Skip Navigation

[Resolved] Select type custom field value not displayed after updating to Types 3.2.4

This thread is resolved. Here is a description of the problem and solution.

Problem:

How can I get [types field] shortcode to output the actual value of the custom field, even when it is of the type select?

Solution:

Please try Views shortcode [wpv-post-field]? For example:

[wpv-post-field name="wpcf-name-of-the-select-custom-field"]

Relevant Documentation:

https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-field

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Daniel 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1186240

I'm using a custom field of type select which is using the wpt_field_options filter to populate custom select values at the Edit Post page. In this case it takes some of the existing tags for the user to choose from. The end result is a custom field with a value equal to the tag ID, could be e.g. 110.

The problem is that this tag ID value is not outputted when running e.g. [types field='name-of-the-select-custom-field' output='raw'][/types]. It seems that it can only output values that are already set for the custom field at the Edit Post Field Group page. This was not the case in an earlier version of Types and hence the site broke after updating.

How can I get [types field] shortcode to output the actual value of the custom field, even when it is of the type select?

Thanks.

#1186527

Hello,

Have you tried Views shortcode [wpv-post-field]? For example:

[wpv-post-field name="wpcf-name-of-the-select-custom-field"]

It should be able to output "name-of-the-select-custom-field" field raw value too.

More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-field

#1186842

It seems to work now, thanks.