0

http://wordpress.org/extend/plugins/tweetily-tweet-wordpress-posts-automatically/

I was wondering if somehow it's possible to make it tweet a Custom Field instead of Post Title?

in top-core.php, at line 214

if ($tweet_type == "title" || $tweet_type == "titlenbody") {
        $title = stripslashes($post->post_title);
        $title = strip_tags($title);
        $title = preg_replace('/\s\s+/', ' ', $title);
    } else {
        $title = "";
    }

Can I replace post_title with something else which can do the trick?

1
  • Note that you will lose all modifications if you update the plugin afterwards.
    – RRikesh
    Commented May 21, 2013 at 12:47

1 Answer 1

1

Sure you can do this with :

$title = stripslashes( get_post_meta($post->ID, 'key', true) ); 

You just have to replace 'key' with the appropriate key.

See the documentation

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.