• Hi,

    I’ll be honest, I’m new into wordpress codex, but I’m figuring things out quite fast. But not with this one…

    on Museumtoeren I have the full list of posts, but when clicking on a post by a specific user I want to end the page with ONLY the posts of that specific user. I thought <?php query_posts(‘get_author_posts_url’); ?> would get only the authors post, but it shows all of them. Do I need to get the call the ID instead? Any help would be more then welcome.

    <?php query_posts('get_author_posts_url'); ?>
    						<? if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
Viewing 11 replies - 1 through 11 (of 11 total)
  • Have a look at Author_Templates.

    Thread Starter krysztoff

    (@krysztoff)

    I just discovered that for some reason I don’t have an author.php page
    I’m working on a site I personally did not develop. Is it possible to just add it from the WP template?

    I didn’t mean to imply that you should necessarily create an author.php template page. More that there’s a lot of example code that you can re-use in that Codex page.

    @krysztoff Have a look at this article: [moderated]

    Thread Starter krysztoff

    (@krysztoff)

    Thank you!

    Thread Starter krysztoff

    (@krysztoff)

    Thanks Girlieworks! I figured it out because of your link. I already had the code set with everything I needed. So I had to replace
    <?php query_posts('get_related_author_posts_url'); ?>

    with
    <?php query_posts( array( 'author' => $authordata->ID, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 10 ) ); ?>

    works like a charm!

    @krysztoff Very good, I’m glad to hear that link was indeed helpful to you!

    @girlieworks: your wpbeginner link was redacted; please keep support on this site.

    Thread Starter krysztoff

    (@krysztoff)

    Hello Mark,

    I understand your point, but it’s thanks to @girlieworks I figured out my problem.
    Just wanted to share this.

    What was the link? I need it too. Thanks dear moderator, now I can’t find the answer here, but need to go search elsewhere. If the user duplicated the content here, it would have been plagerism and Google whould have downgraded this site. Links to other sites are only bad if those sites are more helpfull. By removing links, this site becomes less usefull.

    I agree with Paul and also would have liked to know the link too. I’m glad he said something.

    Wordpress owes its existence to the idea of community contribution, so it seems it would be more consistent with the organization’s stated values to plainly disavow any claims about outside links but allow them.

    It would make this resource for users much better. Why the wall?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘how to list all posts of current author in single-post page?’ is closed to new replies.