Skip Navigation

[Resolved] Toolset own shortcode for custom fields

This support ticket is created 4 years, 11 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by henrikH 4 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1545471

Is it possible you can give a practical example from this answer how to extract Toolsets own shortcode for custom fields (for use with Nina tables) ?

https://toolset.com/forums/topic/custom-fields-with-ninjatables/

#1545641

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'm not familiar with Ninja Tables and I'm not sure what is required to use it.

I'm not sure what you mean by "extract" Toolset shortcodes.

You can output Types fields using the types shortcode. If you are not sure of the right syntax for a particular field, just trying inserting a shortcode into a page or template using the Fields and Views button, and then you can copy and paste it where needed.

In a PHP template you can either put the same shortcode inside a do_shortcode function call (https://developer.wordpress.org/reference/functions/do_shortcode/), or use the types_render_field function instead of a shortcode. See the examples at the top of this page: https://toolset.com/documentation/customizing-sites-using-php/functions/

#1546037

Ok, thanks a lot

#1546039

My issue is resolved now. Thank you!