0

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
  • 1
    Had you inquired with plugin's developers? This is rather specific to it.
    – Rarst
    Commented Jan 10, 2014 at 12:59

1 Answer 1

0

Got it. It simply required echo in the call.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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