Skip Navigation

[Resolved] can't get the custom fields created with Types

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 9 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 10:00 – 19:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by jorgeR-5 9 years, 2 months ago.

Assisted by: Caridad.

Author
Posts
#281735

I'm trying t get the custom fields.

I tried with the api function:
types_render_field("caracteristicas-listado", array() );
but nothing is returned, the field slug is correct and I have a custom post with data in that field.

I Also tried an old way:
$cpt = get_post_custom();
that I use in other WP with Types1.5.6 and nothing.

#281963

Did you echo the result of calling the function?

<?php
echo types_render_field("caracteristicas-listado", array() );
?>
#281964

Thanks Caridad,
I found the problem, in some part or some plugin change the value of $post->ID and types_render_field() can't find the custom fields.

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.