WordPress.org

Forums

Postie
[resolved] Adding Support for Post Formats (5 posts)

  1. Raam Dev
    Member
    Posted 2 years ago #

    I've added Post Format support to the Postie plugin, which allows you to specify the Post Format in the subject using a special delimiter. (It works the same way as the Custom Post Type support I added a few months ago, which has been officially rolled into the plugin.)

    First, you'll need to modify postie-functions.php and add a few additional lines as described in this gist:

    https://gist.github.com/raamdev/5216142/revisions

    Then, when you compose an email, you can add the Post Format to the beginning of the subject, followed by two colons, followed by the Post Title. For example, if I wanted to post an Aside, I could send an email with the following subject:

    Aside :: My Aside Post

    Things I haven't tested:

    • Combining Custom Post Type with Post Format (e.g., "Movies // Aside :: My Aside Movie Post Title")
    • Posting without specifying the Post Format. This should work by just leaving it out of the subject (e.g., "My Standard Post Title"), but I haven't tested it.

    http://wordpress.org/extend/plugins/postie/

  2. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    FYI I've already implemented Post Format support for the next release, but using the Post Type syntax.

  3. Raam Dev
    Member
    Posted 2 years ago #

    @Wayne Allen: Cool! If it uses the Post Type syntax, how does one differentiate between Post Types and Post Formats? I guess I can just wait and see on the next release. :)

  4. Wayne Allen
    Member
    Plugin Author

    Posted 2 years ago #

    It doesn't. Rather it checks for valid Post Type first, then checks for valid Post Format if a Post Type wasn't found.

    I picked that syntax because most people expect it to work that way.

  5. Raam Dev
    Member
    Posted 2 years ago #

    @Wayne Allen: Perfect! That makes a lot of sense. I can foresee scenarios where people are using both Custom Post Types and Post Formats and want to set the Post Format on a Custom Post Type, but I think that's probably more rare than using Custom Post Types or Post Formats.

    Either way, it might be worth mentioning in the documentation which line in postie-functions.php needs editing to change the delimiter if someone wants to use both (assuming it will be as easy as using a different delimiter).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Postie
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic