Questions tagged [list-authors]

Displays a list of the sites's authors (users), and if the user has authored any posts, the author name is displayed as a link to their posts. Optionally this tag displays each author's post count and RSS feed link.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

WordPress dynamic select with category and authors

I need to create two dynamic selects with PHP code to put in the functions.php file. For the categories I'm using the following code which works great: /* BLOG DYNAMIC CATEGORIES SELECT */ function ...
enaion's user avatar
  • 1
0 votes
0 answers
105 views

How to add avatar to authors list?

I have code that shows authors list: <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> It works fine, with number of posts per author and author page link https://images2.imgbox....
arteaster's user avatar
0 votes
1 answer
22 views

How to get authors who have added the post in the specific custom post type

I have a custom post called event and I have to show all the authors who have added the post. I have tried the below code but I am getting all the users on the page. For example. There are 4 users ...
Naren Verma's user avatar
-1 votes
1 answer
250 views

Adding custom column in User List with custom action

I want to add a custom column in the User list in the WordPress admin dashboard with a custom action to perform. It means in the custom column, I want to add a button for each user. While clicking the ...
Bishnu Dev Bhandari's user avatar
0 votes
1 answer
17 views

co-authors plugin - inline listing

I'm trying to set up co-authors plugin in order to show articles authors function inl_users() { if ( function_exists( 'get_coauthors' ) ) { $coauthors = get_coauthors(); //array_shift($coauthors); ...
user avatar
0 votes
1 answer
114 views

Combining wp_list_authors with get_user_meta

i am using the wp_list_authors function as the following: <?php wp_list_authors( array( 'show_fullname' => 'true', 'orderby' => 'display_name', 'order' => 'ASC' )) ?> ...
Simó Tamás's user avatar
1 vote
0 answers
81 views

Count author posts in certain category

I am using this code to only get authors who have posted in the 'Travel' category but the part 'category_name' => 'travel' doesn't seem to work. The code currently gets all posts in all categories. ...
JoaMika's user avatar
  • 668
0 votes
1 answer
203 views

List of all authors avatars

I'm looking for a way to retrieve all authors with their avatar. I know there is a way to get an authors avatar but I want to get all avatars of all the authors :) echo get_avatar(get_the_author_meta('...
user avatar
0 votes
1 answer
26 views

Probleme shortcode with list author

I have created a list of my contributors for my website it works well. I'm trying to do this with a shortcode in my functions.php. The list appears well. But when I want to place it in my theme in any ...
Dim's user avatar
  • 3
0 votes
0 answers
17 views

Get top authors for the last 30 days with posts count and avatar

I want to get top authors for the last 30 days ordered by post-count with their avatar image just like the image: How can I achieve this?
akarim's user avatar
  • 195
-1 votes
2 answers
218 views

Uncode theme, create author page and author link under the blog

On my company's website, there is a blog page which displays blogs of all team members. I want to create an author link below each blog which takes to the author individual page and this page displays ...
Aarti Karnik's user avatar
0 votes
1 answer
53 views

Author social media aren't shown on the page

I'm trying to show the authors social medias on the page but they aren't showed at all. Here is the code that I have so far $website = $user->user_url; if($user->user_url != '') { printf('...
S.I.'s user avatar
  • 125
0 votes
1 answer
181 views

How can I show the author's latest post with title?

The following is my code: (klcom is my theme name) I just show the author by: name and description, I want to show the author's last 3 post with tile after each author, How can I code? Thanks <...
user176974's user avatar
0 votes
2 answers
675 views

Order users by user role

I have custom fields in the user profile that displays in the team page. It reads "director" "researcher" "graduate" "intern" and some others. When adding a new team member, you pick from a select box ...
artist learning to code's user avatar
0 votes
1 answer
513 views

Filter to wp_list_authors

I am using wp_list_authors, to, how function name says, make a list of authors, but i want to show only "Authors". Now in my site, any account who publish a text ("Admin", "Editor") show his name in ...
Matheus Ribeiro's user avatar
0 votes
1 answer
3k views

How to create pagination for users list using custom array?

After searching I didn't found any solution, So I'm wondering how can I create pagination for users list like that? I'm highly appreciated your help, Thanks. <?php global $wp_query; $...
Adham Mohamed's user avatar
0 votes
0 answers
174 views

Top Authors list by highest post views with Ajax pagination

I'm trying to create an users list to sort all users by the highest post views for each user, I added $output = array_slice($topuser, 0, 10); to get 10 users when i click load more in the next page, ...
Adham Mohamed's user avatar
0 votes
1 answer
295 views

Why is wp_list_authors not picking up Authors from CPT's?

Why is wp_list_authors not picking up Authors from CPT's when I have the supports option enabled? From what I have read elsewhere it looks like I have everything covered but the authors of CPT's ...
Peter's user avatar
  • 135
1 vote
1 answer
697 views

implement authentication and authorization to user

i want to get authentication to my website like to be the page with name and password as a file reference to log in as visitor with detected authorization to each person want to visit the website how ...
Mona Kandil's user avatar
0 votes
0 answers
73 views

Wordpress For Loop Prints Unwanted Extra Paragraph Element

I have the following code to list my authors in my sidebar except for the admin account. It works very well in function. However, it prints an extra paragraph element that includes two ancor tags with ...
Ozgur Polat's user avatar
0 votes
1 answer
712 views

wrap a span tag around author's post count

Is it possible to wrap a span tag around the author's post count so I can apply some css styling to the bracketed data for use in a sitemap? On searching I found the solutions for Archives and ...
user3643520's user avatar
1 vote
1 answer
570 views

Posts with multiple authors with different roles

I want to assign multiple authors per post. I'm aware of the excellent Co-Authors Plus. I want to assign different roles, per author, per post. That is, author one could be 'writer', author two could ...
MastaBaba's user avatar
  • 231
1 vote
1 answer
247 views

Remove admin role from the “Author” user listing on individual post screen

How to remove the admin role from the Author listing screen from the individual post? Which hook to use to do this? Can anybody help me? Check the above screen
1991wp's user avatar
  • 100
0 votes
1 answer
106 views

wp_list_authors() returning the wrong member url

I've recently started work on a site which includes both BuddyPress and bbPress. When I use the wp_list_authors() function the list returned to me links to each author's BuddyPress profile. ...
Jazibobs's user avatar
  • 203
1 vote
1 answer
219 views

Display Authors in a grid loop

I currently have the following php code which gives me a list of all the current WordPress authors, including their name and avatar. <?php printf('<h1>%s</h1>', the_title()); ...
M1lls's user avatar
  • 117
0 votes
1 answer
177 views

I'm trying to create a custom version of the wp_list_authors function that includes custom post types

I'm trying to create a custom version of the wp_list_authors function that includes custom post types. I have 3 authors on the site I'm working on (www.healthyeatingadventure.org). Two of them only ...
Adam Lane's user avatar
0 votes
1 answer
313 views

List Authors For Current Category

I want to list all unique authors that have posts in the current category. My code (location: wp-content/themes/custom-theme/category.php) <div class="container"> <div class="row"> ...
Morpheus's user avatar
  • 103
0 votes
1 answer
72 views

Filter authors on meta value

I have added a section to my user profiles called ArtistCategory. This can be value X or Z. I'm using the code below to get a list, which I use in a menu and show after the artists display_name the ...
AKNL's user avatar
  • 96
0 votes
2 answers
405 views

Different values for get_author_posts_url and get_the_author (posts 2 posts)

Caveat- I'm not a programmer, I'm a designer that has taught myself basic php/wordpress theming. This is a very specific question, I realize, but I'm hoping the experts can help me find some ...
spiral's user avatar
  • 171
0 votes
1 answer
51 views

Include administrator in author list

I have this code that is displaying my last active authors. I also would like it to display WP administrators in this list. The code is: $authors = array(); $count = 0; $args=array( 'post_type' =...
Luca's user avatar
  • 1
0 votes
1 answer
309 views

how to add <span> around each author using wp_list_authors

how to add span around each author using wp_list_authors, so the result would be like this <span class="abc">author A</span><span class="abc">author B</span>
user58208's user avatar
1 vote
3 answers
18k views

Get List of all the Authors

How could i get List of all the Authors? author.php file shows the Information about Individual Author. for example: http://domain.com/author/bj that returns the Bj's Profile. if i enter http://...
Jack Torris's user avatar
0 votes
1 answer
118 views

Recent Posts Listed by Author, Can I exclude authors?

I'm working on a multi-author blog, and I'm trying to produce an authors list with recent posts like this page (site is drupal): http://www.internationalrivers.org/blogs I'm working on a draft here: ...
baconsocks's user avatar
0 votes
1 answer
91 views

The loop does not show users

I'm trying to show all post made ​​by the author. Code author.php <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if( get_post_type() == 'post' ) {?> <?php }...
seravifer9's user avatar
2 votes
1 answer
418 views

Show list of authors with latest post NOT older than a month

I found two bits of code. One gets me posts NOT older than a month the other bit gets me a list of authors and their custom fields, names, etc. Can someone please help me integrate the two. One runs ...
wind_kind's user avatar
  • 125
0 votes
1 answer
58 views

Placing generated list into drop-down on custom menu

I'm trying to add categories and authors automatically into the custom menu as they are created (avoiding having to do it manually for each one). I've modified Alex Mill's code and got to display a ...
Eric Mitjans's user avatar
1 vote
1 answer
4k views

Automatically adding categories and authors in custom menu?

I've spent a couple of days googleling around, looking for a way to automatically add categories and authors to my custom menu as soon as they are created (the same way that pages are automatically ...
Eric Mitjans's user avatar
4 votes
2 answers
3k views

Get all authors with at least one post of 'custom post type'

How can i achive that? I found count_user_posts and get_users, but how would I merge them into the desired result? Do I really have to use a WP DB Query?
user9's user avatar
  • 164
1 vote
3 answers
389 views

how to randomly list 5 authors with at least 3 published posts

Bit of a newbie here... As the title states, I am trying to generate a list of 5 random users (taken from authors, editors and administrators) who have published at least 3 posts each. (Also, I ...
user10331's user avatar
0 votes
1 answer
120 views

Comment_author_url doing nothing

I have this function: <?php function top_comment_authors($amount = 5) { global $wpdb; $results = $wpdb->get_results(' SELECT COUNT(comment_author_email) AS comments_count, ...
Johan's user avatar
  • 309
-1 votes
1 answer
140 views

Show the most recent post for an author on the author page

I have 6 authors in my blog page. I have profile for each of the authors. I want to show the posts of the authors dynamically under their own profile. I tried the following but it showed all posts. ...
MidhuN's user avatar
  • 507
0 votes
2 answers
1k views

Listing wordpress users with a search function

I'm having trouble finishing off this code that I adapted from Cosmoslabs excellent tutorial. Everything is working (listing and pagination etc) except the search function whic is returning nothing i....
Osu's user avatar
  • 1,442
0 votes
1 answer
2k views

wp_list_authors including custom post types

I am using wp_list_authors function to list all the users in my blog, however it doesn't display the users who wrote custom post types. it only displays the users who wrote regular posts. Is there a ...
gil hamer's user avatar
  • 661
0 votes
1 answer
80 views

finding out the top 5 source ( source is a custom taxonomy ), in a given category

The client I'm working with have thousands of articles and media ( audio/video ) files. To WordPress, all are posted by Author ID 1, which we named as STAFF. All the content though in reality has ...
Average Joe's user avatar
  • 1,869
2 votes
1 answer
161 views

How can I list random authors from current post category?

The following lists authors of the current category. But I want this to be a list of 6 random authors from current post category. foreach((get_the_category()) as $category) { $postcat= $category-&...
Genxer's user avatar
  • 195
1 vote
1 answer
1k views

How can i list random post from multiple category?

I have an author page, and I want to list posts from current author's categories. e.g. I'm viewing John's page, and John wrote in Sport, Tech, News, Computer categories. Then my code list from this (...
Genxer's user avatar
  • 195
0 votes
1 answer
554 views

How can i list random author?

Im listing current category of all author list but I want to list random author list from current category. I was try 'order' => 'RAND', RAND code its not worked. My Code: function ...
Genxer's user avatar
  • 195
0 votes
2 answers
407 views

How can i do custom author list?

My blog have many author. I can list all author. All Author list: <ul> <?php wp_list_authors('exclude_admin=0&optioncount=1&show_fullname=1&hide_empty=1'); ?> </ul> ...
Genxer's user avatar
  • 195
0 votes
1 answer
2k views

Author's Id from wp list authors function

I'm new in wordpress. I want to display all author list with its ID. I'm using wp_list_authors function but didn't get any author id from the author list. So, How can I get Author's ID in listing of ...
Dharmik Bhandari's user avatar
3 votes
1 answer
2k views

How can i list current author's categories?

My Code getting authors written post categories but just 2 ID has author lists category.. I replace $current_user->ID but it is not worked. <?php $categories = $wpdb->get_results(" ...
Genxer's user avatar
  • 195