post function problem
-
When i develop plugin i had problem this plugin send from wp into twitter
it post title and permalinks and i want this plugin to post the content for every postI tried this functions and dont work
$post = get_post($post_content);
and
$post = get_the_content( $more_link_text, $stripteaser, $more_file );All of this dont work with the plugin and dont get the content for every post what can do please
Source Code that i develop on it is
function socialize($post_ID) { global $twitter_username, $twitter_password, $tumblr_email, $tumblr_password, $delicious_username, $delicious_password, $diigo_username, $diigo_password, $tags; $post_title = stripslashes($_POST['post_title']); $post_title = html_entity_decode($post_title); $tumblr_text = html_entity_decode($_POST[content]); $tumblr_text = strip_tags($tumblr_text); $tumblr_text = nl2br($tumblr_text); $tumblr_text = substr($tumblr_text, 0,200); $permalink = get_permalink($post_ID); $tumblr_text .= "<br />Read more at the source: <a target=_blank href=$permalink>$post_title</a>"; $tw_title = substr($post_title, 0,70); // Send to Twitter if($twitter_username && $twitter_password){ $message = "$tw_title $permalink"; // The twitter API address $url = 'https://twitter.com/statuses/update.xml';
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘post function problem’ is closed to new replies.