The MU forums have moved to WordPress.org

Access Blog Owners Profile Info (4 posts)

  1. crotech
    Member
    Posted 16 years ago #

    I plan on using the "jabber" field to store a custom id for blog owners. Is there a built-in method for retrieving that value to place in the template?

    Details:
    The field will hold the blog owner's affiliate id. In the template file, I want to use the value to append their affiliate id to a link.

    Any feedback is appreciated.

  2. crotech
    Member
    Posted 16 years ago #

    I forgot to mention that I need to access the value for use in the template itself and not in a post or page.

  3. MrBrian
    Member
    Posted 16 years ago #

    Jabber field?

  4. dsader
    Member
    Posted 16 years ago #

    Looking at /wp-includes/author-template.php there is no built in get_jabber stuff. I don't know where else it would be if it even exists.

    Example: put this in the functions.php of your template

    <?php
    function get_the_author_jabber() {
    	global $authordata;
    	return $authordata->jabber;
    }
    ?>

    and this in your "loop" will echo the jabber

    <?php echo get_the_author_jabber(); ?>

    Source: http://trac.wordpress.org/attachment/ticket/4950/author-jabber.diff

About this Topic