Support » Plugins » Change Author of post plug in

  • Hello,

    When I write posts I would like to change the name of the author.

    I have people submit stories to me and I am the one who posts them. Instead of always having it say By “my name” I would like to put their name.

Viewing 2 replies - 1 through 2 (of 2 total)
  • So instead of displaying the author’s name using <?php the_author(); ?> (or one of its variants), you can replace that code with something like, <?php echo get_post_custom_values("author"); ?>.

    The only extra thing you have to do is create a “custom field” (for every post) with a “key” named “author” and set the value to whatever the name of the author is.

    awesome! this is just what I needed. I used your code and slightly modified it to this.

    <?php _te('By '); $values = get_post_custom_values("a"); echo $values[0]; ?>

    THANKS!!!

    I have another question. For my “Recent Posts” box I use this:

    <?php get_archives('postbypost',tiga_recentPostsCnt(),'custom','
    <li>','</li>
    '); ?>

    Now I have another Box called “Games”. Every time make a post that has “Play ….” in the title I would like my “Games” box to have “….” listed in it.

    example: I create a post with the title “Play Chess”. Then let’s say I make a post called “Play Asteroids”

    Now I would like my sidebar “Games” box to have

    ——–
    Games
    ——–
    Asteroids
    Chess

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Author of post plug in’ is closed to new replies.