php - How to put Wordpress Profile Meta in different pages? -


i need 3 different pages showing different parts of 1 user profile on wordpress. author.php standard feature , great loads on website www.website.com/site1/user/nicename. want have 1 profile sorted, display profile on 3 different areas of website.

please note: username in example joe-blogs1990 ever user decides, nicename formatted joebloggs, first , surname combined nice permalinks on wordpress.

www.website.com/site1/author/username www.website.com/site2/agency/nicename www.website.com/site3/meet-the-team/nicename 

i wish call user profile information in 3 different places, have different information on each one, i’ve managed create place edited in 1 place, display information based on url bewildered me.

here have far, nothing loading on of pages im trying achieve above.

<?php get_header(); ?>    <?php $blogname = get_bloginfo('name'); if ( $blogname == 'site1' ) { get_the_author_meta('description'); } ?>  <?php $blogname = get_bloginfo('name'); if ( $blogname == 'site2' ) {  get_the_author_meta('first_name'); get_the_author_meta('last_name'); } ?>  <?php $blogname = get_bloginfo('name'); if ( $blogname == 'site3' ) { get_the_author_meta('facebook_profile'); get_the_author_meta('twitter_profile'); } ?>  <?php get_footer(); ?> 

try adding echo in front of get_the_whatever methods. methods prefixed get_ return strings; in order see have echo it.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -