Skip Navigation

[Closed] Display custom field content without using Views plugin?

This support ticket is created 11 years, 1 month 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.

This topic contains 2 replies, has 2 voices.

Last updated by Benoît 11 years, 1 month ago.


I've made a custom field called "test" using Types plugin and I try to display the content in my header (that's why I didn't use Views plugin) but it won't display.
I'm using the php code below. How should I do to make it work?

Thank you

<div class="header_content">
<?php if(get_post_meta($post->ID, 'test', true)) : ?>
<span><?php echo get_post_meta($post->ID, 'test', true); ?>" </span>
<?php get_post_custom_keys($post_id); ?>
<?php else : ?>
<?php echo nothing to display ?>
<?php endif; ?>



Types includes API functions for that. Have a look here:

You should call 'types_render_field'.


thank you.

The topic ‘[Closed] Display custom field content without using Views plugin?’ is closed to new replies.