Get field values
Parameter | Required | Type | Notes |
---|---|---|---|
$field_name | N | mixed | Enter a field name, or FALSE to get all fields |
$post_id | N | mixed | Enter a post ID, or FALSE to use the current post ID |
$options | N | array | $options['format'] can be ‘api’, ‘input’, or ‘raw’ |
Examples
Output a field value
Store all field values for the current post
Output a field from a specific post ID
Retrieve the raw, unformatted values for post with ID = 42
Get values from within a loop