Passer la navigation

[Closed] using non-toolset fields in views and content templates

This support ticket is created Il y a 7 months, 2 weeks. 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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par Christopher Amirian Il y a 7 months, 2 weeks.

Assisté par: Christopher Amirian.

Auteur
Publications
#2830584

We are using the legacy Views plugin and want to be able to get custom field info for custom post types and fields NOT created by Toolset—is there a way to make [types field='xxx'][/types] work with non-Toolset fields?

#2830827

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

Welcome to Toolset support. No — the legacy [types] shortcode only works for fields created/managed by Toolset Types. For non-Toolset custom fields, use This:

[wpv-post-field name="your_meta_key"]

- Works with any post meta that’s stored under your_meta_key.
- Good for simple text/number values.
- It will not work for complex/serialized values.

Thanks.

The topic ‘[Closed] using non-toolset fields in views and content templates’ is closed to new replies.