Post as "status" format? No problema, amigo.
-
So, you want your tweet to post as “status” format? (using WP 3.4.2)
No problem.
(this is a very rough solution…but it works)around line 193, you have this…
// Add custom fields to the post add_post_meta($post_id, $meta_key = "status_id", $meta_value=$item["id"], $unique=TRUE); add_post_meta($post_id, $meta_key = "status", $meta_value=$item["description"], $unique=TRUE); add_post_meta($post_id, $meta_key = "status_href", $meta_value=$item["link"], $unique=TRUE); add_post_meta($post_id, $meta_key = "twitter_username", $meta_value=$item["twitter_username"], $unique=TRUE); add_post_meta($post_id, $meta_key = "twitter_username_link", $meta_value=$item["twitter_username_link"], $unique=TRUE); return TRUE;
just add this little line (above the return TRUE)…
// Add custom fields to the post add_post_meta($post_id, $meta_key = "status_id", $meta_value=$item["id"], $unique=TRUE); add_post_meta($post_id, $meta_key = "status", $meta_value=$item["description"], $unique=TRUE); add_post_meta($post_id, $meta_key = "status_href", $meta_value=$item["link"], $unique=TRUE); add_post_meta($post_id, $meta_key = "twitter_username", $meta_value=$item["twitter_username"], $unique=TRUE); add_post_meta($post_id, $meta_key = "twitter_username_link", $meta_value=$item["twitter_username_link"], $unique=TRUE); set_post_format($post_id,"status"); return TRUE;
Again, this plugin is great…
I’m thinking in a way to “decode” (in the simplest way) twits with pictures (twitter, instagram, etc.)
I know this is in Chandesh (developer) plans, but i can hardly wait for it…Greetings
https://www.ads-software.com/extend/plugins/tweets-as-posts/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Post as "status" format? No problema, amigo.’ is closed to new replies.