Set default custom post type for XML-RPC

There was a question on WASE regarding this exact thing: How to post to WP custom post type from IFTTT.com. One of the answers had a nice hack, but it would only work with a single post type and cannot be changed – all incoming XML-RPC would be changed to that particular post type 🙁

Maybe there’s a way to determine the incoming URL from IFTTT (ie, facebook, youtube, etc) and then create an ‘if then’ statement in functions.php to select the correlating post type of your choosing for that type of IFTTT/URL? Just speculating.

Edit

Just had a thought: you can specify what category your post from IFTTT will be – what if you created a custom loop/styling based on the category chosen?

if ( $cat_from_ifttt = $category ) {
    //choose custom loop/styling?
}

It’s not exactly custom_post_types, but it’s a possible workaround?

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)