Thank you for your fast response! My problem is that I’m mixing normal WP posts and ‘Import Tweets as Posts’ -posts in the same category and that’s why I’m wondering would there be a easy way to alter the ‘import-tweets-as-posts.php’ in a way that before the tweet text that is imported to a post title, there would always be a word ‘Twitter:’. The post title should this way be: ‘Twitter: **imported tweet text**’
I’m assuming this could be done by modifying something in this part of your code, but because I’m an absolute beginner in this I don’t really know how to do it.
if(get_option('itap_post_title')){
$twitter_post_title = get_option('itap_post_title') .' ('. $tweet_id .')';
} else {
$twitter_post_title = strip_tags(html_entity_decode($tweet_text));
}
$data = array(
'post_content' => $tweet_text,
'post_title' => $twitter_post_title,
'post_status' => $twitter_post_status,
'post_type' => 'post',
'post_author' => 1,
'post_date' => $publish_date_time,
'post_category' => array( $twitter_posts_category ),
'comment_status' => 'closed'
);
Thank you again!
Best,
Antton