Filtering custom fields that are arrays
-
Hello! Thanks for a really great plugin.
I have a custom field that I’d like to filter that is part of a recipes plugin. However, rather than using different meta keys for each field, the plugin seems to be storing everything in an array in one meta key.
Here is how you can return the field within PHP. How can I filter this field in your plugin?
$recipe_meta = get_post_meta( $recipe_id, 'delicious_recipes_metadata', true ); $field = $recipe_meta['difficultyLevel'];
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Filtering custom fields that are arrays’ is closed to new replies.