Display array within the_author_meta: author.php
-
I have created some custom meta keys for users, using the User Meta Pro plugin, and have displayed the custom field “reading preferences” successfully in the author archives page using the following code within author.php:
</div><!-- #author-avatar --> <div id="author-description"> <b><font size = 5>Bio: </b></font size><?php the_author_meta( 'description' ); ?> <br><a href = "<?php the_author_meta( 'user_url' ); ?>">Visit <?php the_author_meta( 'display_name' ); ?>'s website</a> </div><br> <div id="author-description"> <b><font size = 5>Literary Preferences: </b></font size> <?php the_author_meta('reading_preferences'); ?>
I have also created a checkbox field for preferred genres using User Meta Pro, but when I try to display it in the same way, all I get is the word “array”. I can’t find information about how to display an array within the author archives using the_author_meta.
Any help would be appreciated!
-Amy
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display array within the_author_meta: author.php’ is closed to new replies.