I'm not quite clear what do you mean by "Any possibility of this field or the identification code be automatic". I just understand that posts have a custom field the_user
, which stores ID of the user you want to connect with. If you change the field ID from the_user
to author
, then simply change that text in the code. That's all.