• hi all:
    i am working on a site done in wordpress, which is going to have several contributors in it, i would like to have the posts show their authors name, except in the case of the admin of the site, he too will be writing, but does not want his name to appear on his posts.

    how ?

    i’m very close, i can feel it,jaja
    and my php is VERY little.
    i have this..

    <?php if (the_author() !="Lunfardo"){?>
    Written by : <?php the_author() ?>
    <?php }; ?>

Viewing 1 replies (of 1 total)
  • Thread Starter rotarypot

    (@rotarypot)

    well, i’ve found this

    <!-- This sets the $curauth variable -->
    <?php
    if(isset($_GET['author_name'])) :
    $curauth = get_userdatabylogin($author_name);
    else :
    $curauth = get_userdata(intval($author));
    endif;
    ?>

    which is setting the variable $curath with the post’s author, so now i just need to check it to not be X ..

    <?php
    if ($curauth !=’Joe’) {?>
    the author is : <?php the_author();?>
    <?php }; ?>

    right?

    well, it’s not working.
    jaja
    anyone cares to help?

Viewing 1 replies (of 1 total)
  • The topic ‘authors, to show or not to show’ is closed to new replies.