• <?php global $wp_query;
    query_posts( array(
        'post_type' => 'articles' ,
        'author=' . $curauth ,
        'showposts' => 10 )
    
    );   ?>

    I’m trying to add the other post types to my site’s bio pages using the above code however every time I try it, I get a

    able fatal error: Object of class WP_User could not be converted to string in /home/enterc/public_html/wp-content/themes/enconnected_two_desktop/author.php on line 64

    Any guidance you guys could offer would be great.

  • The topic ‘Query a custom post type for an author bio’ is closed to new replies.