coauthors_wp_list_authors sorting and positioning
-
I’m using the coauthors_wp_list_authors function, and having two issues:
1) Sorting. It would be great to be able to sort the co-authors alphabetically. Any tips on how to achieve that? “order” doesn’t seem to be a parameter on this function.
2) I’m calling on this function using a custom shortcode:
function display_authors() { $author_list = coauthors_wp_list_authors('number=500&echo=0'); ?> <div class="author_list"><ul><?php return $author_list ?></ul></div><?php }
The problem is the list of co-authors is always positioned on the page above the other content. And any other content I add is automatically inside that author_list div. It’s like the return is spitting out immediately and the div is not properly closing, or something. Any tips on how to fix this – or tips on other methods for displaying the list of authors? Thanks!
My usage is: I have an authors page on which I want to display a list of all the co-authors.
- The topic ‘coauthors_wp_list_authors sorting and positioning’ is closed to new replies.