Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
19 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 ...
0
votes
1answer
49 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; $...
0
votes
0answers
19 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, ...
0
votes
1answer
55 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 ...
1
vote
1answer
49 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
81 views

Custom post type support for get_users and ( get_author_posts_url( $user->ID );

I'm creating a knowledge base using a plugin and am stuggling to create a page listing authors with a link to their posts. The plugin uses a custom post type (epkb_post_type_1) for articles. The theme ...
0
votes
1answer
306 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 ...
1
vote
1answer
103 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 ...
1
vote
1answer
35 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
0
votes
1answer
68 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. ...
1
vote
1answer
80 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()); ...
0
votes
1answer
75 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 ...
0
votes
1answer
78 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"> ...
0
votes
1answer
21 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 ...
0
votes
2answers
218 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 ...
0
votes
1answer
46 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' =...
0
votes
1answer
190 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>
1
vote
2answers
5k 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://...
0
votes
1answer
100 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: ...
0
votes
1answer
82 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 }...
2
votes
1answer
286 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 ...
0
votes
1answer
51 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 ...
1
vote
1answer
3k 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 ...
4
votes
1answer
1k 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?
1
vote
3answers
283 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 ...
0
votes
1answer
78 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, ...
-1
votes
1answer
119 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. ...
0
votes
2answers
548 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....
0
votes
1answer
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 ...
0
votes
1answer
66 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 ...
2
votes
1answer
137 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-&...
0
votes
1answer
798 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 (...
0
votes
1answer
358 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 ...
0
votes
2answers
253 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> ...
0
votes
1answer
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 ...
2
votes
1answer
1k 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(" ...
0
votes
1answer
77 views

Display all authors in a theme template

I was having an issue the other day and successfully got a very good answer which helped me alot achive what I wanted. this is the post which I created and have all the correspondence: wordpress....
-1
votes
1answer
388 views

list all authors outside of loop with photo from /uploads

I was successfully using this excellent contributors function to generate a list of the users on my site with gravatar photo.. UNTIL the client decided they don't want to use gravatar and would rather ...
2
votes
1answer
217 views

wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs

I'm seeking for a plugin show my points (reputation) of Stackexchange (not Stackoverflow) in my Wordpress blogs. or other projects in stackexchange like : Superuser Security Serverfault SharePoint ...
0
votes
1answer
172 views

Exclude Authors based off date of last post

I have several writers that range from frequent to one-time writers for my blog. On my Author page, I would like to separate out writers that have not posted an article in 6 months. It would be nice ...
1
vote
1answer
483 views

Author List page: Exclude based on last post date

I have a Author page that I built using this code and it works fine. However, I have several writers that range from frequent to one-time writers. I would like to seperate out writers that have not ...
0
votes
1answer
351 views

Author Link in Recent Posts Widget

I want to add author link into the recent post widget. For example if any user post on my web from his LinkedIn ID (which I have allowed) so in Recent Posts where it shows, <time> By: <author&...
1
vote
2answers
40 views

author list not linking to correct page

I have an odd problem with the author list. I am using the below code in my sidebar to pull in the gravatar and link to author's profile. However, the links it's actually generating are wrong. It just ...
1
vote
3answers
230 views

Add gravatar to author list

I am using this code for listing out all authors on the site in my sidebar. It works, except I also need to pull in their Gravatar image. It's working in a loop on the homepage with this <?php ...
0
votes
1answer
140 views

Add formatting to Array

This displays authors by date of their latest post. I'd like to: add formatting around each author list additional properties (avatar, latest post title and excerpt) <-- I have the bits for this, ...
0
votes
1answer
581 views

Exclude Author by ID

How can I exclude authors by ID from this: <?php //displays all users with their avatar and their posts (titles) $blogusers = get_users_of_blog(); if ($blogusers) { foreach ($blogusers as $...
2
votes
2answers
169 views

Custom Author Fields + Existing Taxonomy - Integrating the Two Dynamically?

I am trying to integrate both the values from an existing custom taxonomy and custom author profile fields. I would like the values to be used as the options from which an author can select when ...
0
votes
2answers
5k views

Display all authors and their only one latest post

I have a website with many authors and posts. I need to create a list of all authors and for each one display his latest post (not posts, only one post). This better explains what I need: <ul> ...
0
votes
3answers
2k views

List total number of users that are authors

Question I want to display total number of Authors and total number of subscribers on the blog but exclude the admin in this way: 56 Authors so far 15 Subscribers so far Code that is close to ...