The MU forums have moved to

Access Blog Owners Profile Info (4 posts)

  1. crotech
    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?

    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
    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
    Posted 16 years ago #

    Jabber field?

  4. dsader
    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

    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(); ?>


About this Topic