I am trying to understand Custom Fields and how I can use them on my posts.

I have set up a Custom Field for 'author' and associated it with a template.

Now, on the PHP side of things I need to designate where the custom field's out put will be.

I have followed the documentation on the WP-Types site here and so have written:

<p>Author: <?php   types_render_field( "author", array( ) ) ?></p>

But it returns nothing.

Im not sure what I've done wrong. Can someone point me in the right direction?

  • 1
    Had you inquired with plugin's developers? This is rather specific to it. – Rarst Jan 10 '14 at 12:59

Got it. It simply required echo in the call.

<p>Author: <?php echo types_render_field( "author", array( ) ) ?></p>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.