• Hi,

    To preface, I’m new with this system, and I’m not too good with code.

    Here’s my question:

    On my website writers post articles (as posts), we have writer’s pages with a picture and a bio of the writer and i wanted to know how we could get there to be a list of links to all the articles they have written.

    Any help would be greatly appreciated.

    Thanks,

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you have an Author Template then natively WordPress will do that.

    But if you have something different, then you might use something like this:

    <?php
    //display all post titles for author id 4
    $args=array(
     'author' => 4,
     'showposts'=>-1,
     'caller_get_posts'=>1
    );
          $my_query = new WP_Query($args);
          if( $my_query->have_posts() ) {
            echo '<h2>More Posts</h2>';
            while ($my_query->have_posts()) : $my_query->the_post(); ?>
              <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
             <?php
            endwhile;
          } //if ($my_query)
      wp_reset_query();  // Restore global post data stomped by the_post().
    ?>

    Thread Starter smcgillis

    (@smcgillis)

    Thank you!

    What parts exactly do I have to change for the specific author?

    ‘author’ => 4,

    Thread Starter smcgillis

    (@smcgillis)

    this may be a retarded question

    but

    do i just copy that whole thing into the html code space of a blank page?

    my template doesnt have an author thing but it does have an archive one, should i use the default template or the archive one?

    thanks

    we have writer’s pages with a picture and a bio of the writer

    Please paste all the code from the theme template file that displays the author information into a pastebin such as wordpress.pastebin.ca, and report the link back here. Maybe someone can answer your question. Thanks.

    What is the ID is dynamic which means I want to display these sets of latest posts beside an author’s posts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help: Writers List’ is closed to new replies.