• Resolved j8h9

    (@j8h9)


    I want to launch a news website that contains articles selected from around the web. Each article/post contains 1) title/subject, 2) excerpt (3-5 sentences)
    and 3) a link to the actual article on anothe website. Each article is associated with one primary category and each primary category has a
    specific image (small).

    I want to send an email that contains title/subject, category, article excerpt and a link. The link should contain a static target
    (i.e. target=’newpage1′) so all links clicked in the posts open a new window–the same window.

    Need to specify a category that will automatically insert a specific image (one image is assocaitged with each category). I want postie to insert
    the category image.

    I see in the doc where it says ‘cat specify cat here’ but don’t know if this goes in the body or subject line. For inserting image, I need
    a big switch stmt checking category and then inserting the correct image into the post. Any assist is appreciated.

    https://ww.wp.xz.cn/plugins/postie/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    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;
    }

    Plugin Author Wayne Allen

    (@wayneallen-1)

    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…

    Plugin Author Wayne Allen

    (@wayneallen-1)

    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

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Glad you got it working.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Customized Postie –’ is closed to new replies.