This plugin hasnt been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

IFTTT Post Formats & Post Types

Description

IFTTT (if this, then that) is one of the coolest web services available, and allows you to connect your different web service accounts to create ‘recipes’. An example of a recipe that I have is to create a new WordPress post on my blog whenever I favorite a YouTube video.

Unfortunately IFTTT doesn’t have a way to specify a post format or a custom post type, so this plugin provides a couple ways to update them.

To set the post format, you need to set the category in IFTTT to one of the following categories:

ifttt-aside

ifttt-gallery

ifttt-link

ifttt-image

ifttt-quote

ifttt-status

ifttt-video

ifttt-audio

ifttt-chat

So for my YouTube -> WordPress recipe, I have it adding the ‘ifttt-video’ category in IFTTT (IFTTT allows you to specify the category for the posts it creates), and voilà, when it’s published, the format has been set.

If you want to instead set the new post to a custom post type, you can do so by setting the category in IFTTT to one that matches this pattern: ifttt-posttype-{post_type_slug}. So if you wanted to create new WordPress pages with IFTTT, you would add the ifttt-posttype-page category.

And finally, if you want the IFTTT categories to be stored as a different taxonomy, you can do so by setting the category in IFTTT to one that matches this pattern: ifttt-taxonomy-{taxonomy_slug}.

Note: These speciall ifttt-* categories will not actually be set on the post/page/object. These are ‘special’ categories which simply serve as flags for which post format, post-type or taxonomy to send the data to, and they are removed from the list of categories which are actually stored to the post.

Installation

Upload the ifttt-post-formats directory to the /wp-content/plugins/ directory.

Activate the plugin through the ‘Plugins’ menu in WordPress.

FAQ

How do I set the post type with this plugin?

This was added in version 0.1.1. To set the new post to a custom post type, you can do so by setting the category in IFTTT to one that matches this pattern: ifttt-posttype-{post_type_slug}. So if you wanted to create new WordPress pages with IFTTT, you would add the ifttt-posttype-page category.

How can I change the taxonomy for the IFTTT categories?

As of 0.1.3 You can do so by specifying a ifttt-taxonomy-{taxonomy_slug} category in the IFTTT category field. Will only work if the taxonomy_slug is a valid registered taxonomy. You can also hook into the ifttt_pfpt_taxonomy_to_save_as filter like so:
function ifttt_pfpt_save_as_custom_taxonomy( $taxonomy ) {
$taxonomy = ‘custom-taxonomy-slug’;
return $taxonomy;
}
add_filter( ‘ifttt_pfpt_taxonomy_to_save_as’, ‘ifttt_pfpt_save_as_custom_taxonomy’ );

I don’t like the `ifttt-*` categories hanging around.

You can delete them by adding the following snippet to your theme’s functions.php file or as an mu-plugin: