Title: Create author custom field?
Last modified: August 21, 2016

---

# Create author custom field?

 *  [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/)
 * I really like this plugin, but i have a small request or modification i would
   like to make.
 * When i use the import to post, a custom field is generated with a value according
   to the url of the original post (from the authors site).
    What i would like is
   for the importer to also generate a custom field for the name of the author, 
   and the url to his/her frontpage.
 * I’ll try to give you an example:
 * Author, writes a post -> I import the post (feed to post) -> Importer generates
   Custom field 1, the post url (www.author1.com/post) -> importer generates field
   2 (key=author, value= author name) -> importer generates field 3 (key=source,
   value=www.author1.com)
 * When those fields are generated, i believe i can use the custom fields to make
   my frontpage show the posts in the specific way i want to.
 * Featured pic
    Title (links to custom field 1) Excerpt By “author” (custom field
   2) – links to author url (custom field 3) Date+time of the post (still working
   on that)
 * Hope you kind of get the idea of what i want and that you can point me in the
   right direction in how to achieve it.
 * [My site](http://selectedbloggers.cphadsdemo.dk)
 * [http://wordpress.org/plugins/wp-rss-multi-importer/](http://wordpress.org/plugins/wp-rss-multi-importer/)

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

 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4243830)
 * you would have to change a lot of code in the plugin to make this work..the fields
   are there to do this (e.g., $items[‘myauthor’], etc, which you see in the default
   template (in the templates folder).
 *  Thread Starter [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4243996)
 * There must be somewhere i can see how the existing custom field for the source
   link, is created, and then copy-paste that, swapping the $thisLink parameter 
   with $myAuthor or something like that?
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4243997)
 * I’m not sure..you can create your own template and swap out whatever you like(
   just be sure to save the template using the template options admin.
 *  Thread Starter [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4243998)
 * It cant be that difficult, can it?
 * I’ve found the original link custom field to be in the import_post.php file. 
   For some reason its within an if loop, so unfortunately i can’t just add another
   custom field.
 * I’ve figured out that this must be the code i need to insert:
 * `add_post_meta($post_id, 'rssmi_author_link', $items['myauthor'], true);`
 * i just need help to figure out where to insert it, and im not sure that my value
   is correct ” $items[‘myauthor’] ”
 *  Plugin Author [Allen](https://wordpress.org/support/users/amweiss98/)
 * (@amweiss98)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4243999)
 * your value is correct..you can try adding that inside the loop..it will add it
   to the database but I’m not sure what you want to do after that…
 *  Thread Starter [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4244000)
 * What i want is for the plugin to auto-generate a custom field – just like it 
   does with the source-link now. I just want to add a field more, with the authors
   name as value.
 * I will try to play around with it, but since I’m not an expert in php coding,
   i would appreciate any help you could give me.
 * thank you
 *  Thread Starter [j4ze](https://wordpress.org/support/users/j4ze/)
 * (@j4ze)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4244001)
 * Now i got the plugin to add the custom field, but for some reason the value-field
   is empty 🙁 I’ve tried to use
 * `add_post_meta($post_id, 'rssmi_author_link', $items['myauthor'], true);`
 * and
 * `add_post_meta($post_id, 'rssmi_author_link', $feedAuthor, true);`
 * but none of them returns a value 🙁

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

The topic ‘Create author custom field?’ 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/)

 * 7 replies
 * 2 participants
 * Last reply from: [j4ze](https://wordpress.org/support/users/j4ze/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/create-author-custom-field/#post-4244001)
 * Status: not resolved