Usage

To get a variable

<? echo get('variable'); ?>

To get an image with image tags

<? echo get_image('variable'); ?>

To a get a template setting

<? echo option('variable'); ?>

Get a specific field from a specific group

<? get($fieldName, $groupIndex=1, $fieldIndex=1, $readyForEIP); ?>
<? get_image($fieldName, $groupIndex=1, $fieldIndex=1); ?>
<? get_audio($fieldName, $groupIndex=1, $fieldIndex=1); ?>

$fieldName - string containing field name
$groupIndex - integer representing the index of the group in case the group is duplicated.
$fieldIndex - integer representing the index of the field in case the field is duplicated.
$readyForEIP - if true and the field type is textbox or multiline textbox, the resulting value will be wrapped n a div that is ready for EIP.

To get the path of phpthumb

<? echo pt(); ?>

Get duplicate fields

Get number of field duplicates given field name and group duplicate index. The function returns 1 if there are no duplicates (just the original field), 2 if there is one duplicate and so on.

<? getFieldDuplicates ($fieldName, $groupIndex); ?>

Get duplicate groups

Get number of group duplicates given field name. The function returns 1 if there are no duplicates (just he original group), 2 if there is one
duplicate and so on. $fieldName is the name of any field in the group

<? getGroupDuplicates ($fieldName); ?>

Custom queries

Ordering posts based on a custom field - Assuming you have a field named “my_custom_order”, query_posts should be

<? query_posts($query_string.’customorderby=x_my_custom_order&order=ASC’); ?>

Filtering posts with a specified value - Assuming you have a field named “my_field”, add a the prefix ‘x’ to it and add it normally to query_posts. E.g.

<? query_posts($query_string.’x_my_field=true); ?>