Title: Change Post Title
Last modified: August 20, 2016

---

# Change Post Title

 *  Resolved [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/change-post-title-1/)
 * Right now my feed to post post have a default title of of Photo mostly because
   my pinterest and tumblr feeds don’t have titles. So I wanted to change that to
   a combination of “FeedName” and “date” is that possible?
 * [http://wordpress.org/extend/plugins/wp-rss-multi-importer/](http://wordpress.org/extend/plugins/wp-rss-multi-importer/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627429)
 * go into the import_posts.php file and find this line:
 *  $post[‘post_title’] = trim($items[“mytitle”]);
 * change that to:
 *  $post[‘post_title’] = $items[“myGroup”].’ ‘.date(‘Y-m-d H:i:s’,$items[‘mystrdate’]);
 * that should work…you’ll need to save this since would be a hard coded change 
   and will be overwritten if you upgrade later on
 *  Thread Starter [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627473)
 * thanks for the code but it had a problem and broke the site.
 * This worked
    `$post['post_title'] = $items["myGroup"]`
 * but once i put the date in it breaks. I think it has something to do with the
   concatenation of the two. Any suggestions?
 * thanks
 *  Thread Starter [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627614)
 * Everything was working fine then all of a sudden it broke the page, the odd thing
   was that I haven’t even touched it for 3 days. so why would it stop, here’s the
   thing if i deactivate the plugin the homepage is fine, if i reactivate i only
   get a blank page.
 * Seems that only the homepage and one category is broken but the others if i manually
   go there work fine.
 * blog.lollimobile.com homepage is broken
    [http://blog.lollimobile.com/category/cute-asian-fashion/](http://blog.lollimobile.com/category/cute-asian-fashion/)
   is broken [http://blog.lollimobile.com/2013/04/10/cute-asian-fashion-401_738/](http://blog.lollimobile.com/2013/04/10/cute-asian-fashion-401_738/)
   specific post are fine.
 * [http://blog.lollimobile.com/category/cute-jewelry/](http://blog.lollimobile.com/category/cute-jewelry/)
   however is fine if you go there with a direct link. all post seems fine too even.
 * Any ideas?
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627621)
 * can you put here the exact code you are using…you may have an error in the code
   that is breaking the site.
 *  Thread Starter [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627654)
 * this is the only thing that was changed
 *     ```
       $post['post_title'] = $items["myGroup"]
       ```
   
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627656)
 * Did you put a semi-colon at the end of that line?
 *  Thread Starter [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627657)
 * yes he is the code before and after it so you can see
 *     ```
       if ($overridedate==1){
       		$post['post_date'] = $rightNow;
       	}else{
         		$post['post_date'] = date('Y-m-d H:i:s',$items['mystrdate']);
       	}
   
       	$post['post_title'] =($items["myGroup"]);
   
       	$authorPrep="By ";
   
       		if(!empty($items["myAuthor"]) && $addAuthor==1){
       		 	$thisContent .=  '<span style="font-style:italic; font-size:16px;">'.$authorPrep.' <a '.$openWindow.' href='.$items["mylink"].' '.($noFollow==1 ? 'rel=nofollow':'').'">'.$items["myAuthor"].'</a></span>  ';
       			}
       ```
   
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627659)
 * the code looks fine…not sure what’s going as
 * blog.lollimobile.com
 * doesn’t look broken at all.
 *  Thread Starter [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * (@namsterdamus)
 * [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627660)
 * we figured it out, we had to increase the memory allocation from 128MB to 256MB
   in the php.ini because we had just way too many post and it could not handle 
   it. that fixed it.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Change Post Title’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-rss-multi-importer_a9b8a0.svg)
 * [WP RSS Multi Importer](https://wordpress.org/plugins/wp-rss-multi-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-rss-multi-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-rss-multi-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-rss-multi-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-rss-multi-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-rss-multi-importer/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [namsterdamus](https://wordpress.org/support/users/namsterdamus/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/change-post-title-1/#post-3627660)
 * Status: resolved