As I’m sure you know the various commands are listed here: http://postieplugin.com/usage/
The category can be specified in the subject line. http://postieplugin.com/faq/override-post-categories/
The excerpt goes in the email body. http://postieplugin.com/faq/creating-excerpt/
Postie puts the link in the post the same way it receives it if you’re using “Preferred Text Type” set to “html” however, your email client may change things before it is sent, you will have to test.
To insert the category image you have 3 options:
1) alter your theme to display the correct image
2) create a plugin that adds the image when the post is rendered
3) create a Postie addon to add the image http://postieplugin.com/extending/
Thread Starter
j8h9
(@j8h9)
Thanks for response Wayne. Likely, I’ll pursue #3. If I trap the $post in this new function — what format is the $post? Haven’t tried it yet but is this $post one big html block or array of values?
How can I change the category or title?
function my_postie_post_function($post) {
//do something here like update $post[‘post_content’]
return $post;
}
It is an array as described http://postieplugin.com/postie_post_before/
$post['post_title'] = 'New title';
$post['post_category'] = array(8,92);
Thread Starter
j8h9
(@j8h9)
Wayne
I appreciate your time/patience.
I found the filterpostie sample and have been working my solution. I’m seeing an issue with URL and likely not related to plug, moreso WP but maybe you can help.
I’m parsing the URL and adding back to post_content because I want a target= on the <a anchor tag. Looks like postie handles just fine (see below) but looks like WP is seeing my URL and trying to format causing the whole URL to be fubar.
Any ideas on how I can resolve this issue? THere pic in this directory showing how WP is formatting the URL…
gridgoesdown.com/postie
post_content] => Virtually anything that’s Wi-Fi-enabled—ranging from kitchen appliances like refrigerators to military drones—has the potential to be hacked. But while there are many concerns about the security of specific IoT devices, one area that may be particularly susceptible to attack is what one company, SCADAfence <http:>, calls the "industrial internet of things."
Read Full Article here…
I can’t view anything in the dir, redirects to 404 page…
Thread Starter
j8h9
(@j8h9)
This directoru renders for me http://www.gridgoesdown.com/postie
I found that if I send the URL in the originating email as text, it formats perfectly… WIP