WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Field ID --> Post Author possible? (5 posts)

  1. thiskidisevil
    Member
    Posted 6 years ago #

    Hello all,

    i have some little coding problems, unfortunately i don't know how to resolve it.

    i'm about to create a wordpress-magazin, but: all the posts will be submitted by me (admin) as many of my readers do not have enough computer-experience to write them themselves.

    is it somehow possible to link to the "real" authors name in the meta-positions, not to the "admin"-profile?

    i thought i'd make a custom field where i can submit the "real" authors id (for example: 5) and then get something like "<?php the_author('thecustomid'); ?>" or <?php the_author(5); ?>?

    How does it work?

    Can anybody help me?

    Excuse my crappy english, and thanks a lot in advance.

  2. MichaelH
    Member
    Posted 6 years ago #

    Why not just make your 'real authors' a category or a tag, then WordPress will take care of the 'linking' for you.

    Your English is GOOD!

  3. thiskidisevil
    Member
    Posted 6 years ago #

    Hello,

    thanks for your reply!

    Hm, you mean i should make a "tag" for every author name?

    Not a bad idea!

    But... doesn't that show up in the tag cloud as not relevant info?
    or can i somehow exclude it from the tag cloud?

    and... making a new category for every author?

    i mean, this could probably become like 20 people.. or 50.. or maybe 100 when i'm lucky :D
    i think i would be completely lost with all the categories then..

    or did i get you wrong?

    the thing is, i have all those users existing in my database up to now. they have all their existing user ids from 1 to ~420.

    now, user 231 (john doe) sends me some article and wants it to be displayed under his name, not mine.

    i could make a custom field and type into his name, but wouldn't it be just better to enter his id and then get his username and link to his profile appear like wordpress does it "for real"?

    sorry, i am not sure if i describe it understandable, because i can express myself very poorly in english :)

    thanks for your answer and many greets :)

  4. MichaelH
    Member
    Posted 6 years ago #

    If setup your authors as Users in your blog, then when you Write a Post you can specify the Post Author.

  5. thiskidisevil
    Member
    Posted 6 years ago #

    I GOT IT!

    Thank you 10000000 times!

    You saved me! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic