List terms from User and “archive.php” for Users
-
Hello,
I have a loop in which shows up a list of users. I tried your previews suggestions in other topics for retrieving the terms, but had no success.
My loop:
<?php // WP_User_Query arguments args = array ( role' => 'especialista', ); // Create the WP_User_Query object $wp_user_query = new WP_User_Query($args); / Get the results $authors = $wp_user_query->get_results(); // Check for results if (!empty($authors)) { // loop through each author foreach ($authors as $author){ ?> <li> <div class="my_user"> <h1><a href="<?php echo get_author_posts_url( $autho->ID, $author->user_nicename ); ?>"><?php echo $author->user_nicename; ?></a></h1> </div> <div class="user_terms"> <div class="col-xs-12"> //list my terms from multiple taxonomies, like array('tax_1', 'tax_2', 'tax_3'); </div> </div> </li><!--col-xs-12--> <?php } } else { echo 'Nada Encontrado'; } ?>
Could you help me in how to get these terms from User taxonomies?
Thanks in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘List terms from User and “archive.php” for Users’ is closed to new replies.