Advertisement
Guest User

Retrieve individual custom field

a guest
Dec 11th, 2014
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2.  
  3. // One way of retrieving a specific additional field, using
  4. // it's label, is as follows.
  5. echo TribeEventsCustomMeta::get_custom_field_by_label( 'Field Label' );
  6.  
  7. // Alternatively you can use tribe_get_custom_fields()
  8. $fields = tribe_get_custom_fields();
  9. echo $fields['Field Label'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement