WordPress.org

Ready to get started?Download WordPress

Forums

include author avatar next to link in RSS feed (2 posts)

  1. Lpspider
    Member
    Posted 9 months ago #

    Is this possible? I'd like to include the author's avatar of a particular post next to the link (title of blog post) on an external non-wordpress page.

    Right now I'm pulling the page title and can pull the post content, but can't find a way to pull the author's avatar as well.

  2. Jonathan Lake
    Member
    Posted 9 months ago #

    In the same loop you're using to grab the post content and page title, you need something like this:

    <?php echo get_avatar( $id_or_email, $size, $default, $alt ); ?>

    http://codex.wordpress.org/Function_Reference/get_avatar

Reply

You must log in to post.

About this Topic