Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

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

1 Answer 1

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

 
discard

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.