In the author profile we habe all his posts as a list. Every author can have his own guestbook by writing a post in category guestbook. Now I want to query the guestbook outside the loop.
<ul> <?php global $post; $myposts = get_posts('category=40'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
but with this I get the guestbook-links of all authors in the profile of each author.
How can I get only the guestbook-post of the current author in the current author's profile?
view profile here: http://www.ci-jou.de/?author=1