WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


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?

share|improve this question
Note that you will lose all modifications if you update the plugin afterwards. – RRikesh May 21 '13 at 12:47
up vote 1 down vote accepted

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

share|improve this answer
That did the trick, Thank you. – user33092 May 22 '13 at 11:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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