Part of content to custom field
-
First of – what a great plugin! But I have one question – how do I put part of the content of an email into a custom field?
Example: I want be able to send a mail like:
Prio: 1
Description: This is a descriptionAnd than let postie set the custom field prio to 1 and the content to “This is a description”. I know I should be able to do it with filterPostie.php but don’t know really how.
I have figured out a part:
function add_custom_field($post) { add_post_meta($post['ID'], 'prio', $prio); return $post; } add_filter('postie_post_before', 'add_custom_field');
But how do I parse the content to get out the 1 and the text after description?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Part of content to custom field’ is closed to new replies.