En cours

Wordpress postie plugin - modify filter [[login to view URL]]

I have a new wordpress blog and am using the postie plugin to allow posting of content via email

The plugin works great. I can email to an address and it's posted to the default category set in postie.

This all works fine.

But- Postie has a filter option which allows you to set the category with a tag in the submitted email.

I'm not a php wiz, and its a bit greek to me.

I just need someone to modify the filter file (the file is below) so that it will assign incoming email/posts to a category.

I assume the sender of the message will add a tag to the subject or the body (either way).

Project should be basic PHP programming for someone who can deal with Wordpress Plugins and functions. I simply don't have the time to do this, and need this ASAP.

A couple examples you could add to the filter below:




I'll just need the text below returned, then I test on the already working postie setup.


--- this is the sample filter file ----



Plugin Name: Postie Filter

Plugin URI: [url removed, login to view]

Description: Adds my own custom filter to messages posted by postie

Version: 1.4

Author: Robert Felty

Author URI: [url removed, login to view]



* Any filter function you write should accept one argument, which is the post

array, which contains the following fields:





















Your function can modify any of these fields. It should then return the array


Two example functions are provided here


function filter_content($post) {

//this function prepends a link to bookmark the category of the post

$this_cat = get_the_category($post['ID']);


$link = '<a href="' . get_category_link($this_cat[0]->term_id) .

'">Bookmark this category</a>' . "\n";

$post['post_content'] = $link . $post['post_content'];

return ($post);


function filter_title($post) {

//this function appends "(via postie)" to the title (subject)

$post['post_title']= $post['post_title'] . ' (via postie)';

return ($post);


function auto_tag($post) {

// this function automatically inserts tags for a post

$my_tags=array('cooking', 'latex', 'wordpress');

foreach ($my_tags as $my_tag) {

if (stripos($post['post_content'], $my_tag)!==false)

array_push($post['tags_input'], $my_tag);


return ($post);


function add_custom_field($post) {

//this function appends "(via postie)" to the title (subject)

add_post_meta($post['ID'], 'postie', 'postie');

return ($post);


add_filter('postie_post', 'filter_title');

add_filter('postie_post', 'filter_content');

add_filter('postie_post', 'add_custom_field');

add_filter('postie_post', 'auto_tag');


Compétences : PHP

en voir plus : postie filter file, wordpress postie filter sample, postie filter, filter postie category, wordpress postie custom fields, wordpress postie filter, postie plugin add custom fields, postie filter functions, postie post filter, postie category content, wordpress postie filter add fields, wordpress postie custom filter, postie add tags post, wordpress filter post_title, filterpostie, plugin postie custom, write my name on your body, wordpress php programming, wordpress greek, wordpress email plugin, which is wordpress, test wordpress, subject php, programming via php, programming in wordpress

Concernant l'employeur :
( 0 commentaires ) Land O Lakes, United States

Nº du projet : #1067744

Décerné à:


Sir check your PMB

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 2 jours
(0 Commentaires)