'Author' in the WP context can refer to two different things: the person who has written a certain post/page or the role a user has.

learn more… | top users | synonyms

1
vote
1answer
28 views

List user comments in author page

I'm trying to display a list of the author comments in the authors page but it only shows No comments made. How can I list user comments in the authors page? <?php $args = array( 'user_id' =&...
0
votes
3answers
81 views

Custom css author role

I need a code snippet to load css (extra style sheet?) when a author is logged in. This is for a custom dashboard and post "page". The screenshot is what i mean by post page. I want to hide stuf by ...
0
votes
1answer
17 views

Assign a category to all articles

I have a database of 4000 articles and I need to assign a specific category to all of this articles. How I can do? If I try by selecting all in the CP and trying to modify them, i get an URI too ...
0
votes
1answer
96 views

Show one post per author and limit query to 8 posts

I want to show 8 recent products from multiple authors on the frontpage. Need to show 1 recent product per author. Currently i'm using basic wp query to show recent 8 products. $args = array ( '...
1
vote
1answer
38 views

Send transactional email: first user's post

I want to add this piece of code to my functions.php file, so that when a user creates its first post, he receives an email to congratulate him. function set_mail_html_content_type() { return '...
0
votes
0answers
15 views

add meta box in author tag in wordpress post

By default the Author Metabox on the post editor displays only a drop down to set the author of that respective post/page. I'd like the author's contact info (email address) displayed on the Author ...
3
votes
0answers
70 views

Change the author slug from nickname to ID

I've changed the default registering option by allowing people to sign up with their e-mail addresses. They also have an option to add their firstname, lastname but it's not required. // Allow email ...
0
votes
1answer
20 views

Individual Comment Notification Setting For Post Author

Is there a way (Either plugin or custom function), to let every author individually choose, if he/she want's to receive comment notification for his/her posts? Some of my autors need to receive those ...
0
votes
1answer
67 views

Display Recent Posts in BuddyPress Profile

This is the code I use to get recent WordPress posts. <h2>Recent Posts</h2> <ul> <?php $recent_posts = wp_get_recent_posts(); foreach( $recent_posts as $recent ){ ...
0
votes
1answer
88 views

Display a list of all post from the Author in the author's page (author.php) in alphebetical order

wordpress noob here. I'm trying to get a php code that will list all of the author's post in the author's page, or in author.php file, in alphabetical order. If anyone here knows how, please help.
0
votes
1answer
30 views

Prevent author from editing comments from others in their post

I want to prevent other authors from editing other people's comment made in their post. Does anyone here know how to do this?
0
votes
0answers
28 views

inserting an if statement in wp_notify_postauthor

I'm trying to use the following code below in a plugin i made to send an email to the post author on a comment update. It works but causes problems when creating the custom post type "ticket". I have ...
0
votes
1answer
58 views

How to restrict an author scheduling their post date to a maximum X days ahead from the current date

How would I restrict an author in scheduling their post X (let's say 8) days ahead of the current date?
2
votes
2answers
393 views

How can I add an Author filter to the Media Library?

By default the WordPress Media Library allows you to filter results by their type or date. How can I add a third drop down to list and filter by author? Currently we have this: I'd like to have ...
1
vote
1answer
57 views

Comment displaying full name even after setting another display name?

I've tried everything ... Changing the display name of the user: Changing the author name of the comment: But it doesn't work. The author name of the post is still the user's full name: Why ...
0
votes
2answers
43 views

How do I change the user via SQL?

I change a user via SQL in wordpress: SET @old_user='old_user'; SET @new_user='new_user'; UPDATE wp_users SET user_login = replace(user_login, @old_user, @new_user); UPDATE wp_users SET ...
0
votes
1answer
53 views

Get author image for posts in loop on custom type posts page

I am archiving all the posts from particular custom post type on a page using the following code. <?php /* Template Name: List-all-shorts */ ?> <?php get_header(); ?> <div class="row"...
2
votes
2answers
726 views

Current post's author name in the author meta tag

I am trying to add the current post's author as the content for the meta author tag. I wrapped this particular meta in an is_single condition and then tried: <meta name="author" content="<?php ...
0
votes
1answer
12 views

Author information on all pages

I want to post inforation about the author of the website on every page. This means it needs to display the 'author' avatar, name, biography (x chars) of id 2. Is this possible?
1
vote
1answer
108 views

Showing author's page with no posts

I'm building a meet the team page, which will be included all team members. I'm using the author.php file template. I have a page that shows all authors (it works with authors who have no posts). ...
0
votes
0answers
72 views

Author info does not show up when author has no posts

When author has no posts, it does not display author name or bio (below code). I tried http://codex.wordpress.org/Author_Templates#Custom_Author_Information but it give me Notice: Trying to get ...
1
vote
1answer
149 views

Change author base slug to user role

My goal is simple, to change authot base role to user role. For example: admin: wwww.mysite.com/admin/username editor: www.mysite.com/editor/username default looks like this to any user: www....
0
votes
1answer
80 views

Modifying get_author_posts_url() in Multisite

I'm not sure if this is a known WordPress Multisite bug, or the way the Multisite I am working on was setup. The kind of issue I am having is similar to this one. The links created by ...
0
votes
0answers
9 views

How to Move Comments from a Page to Author Page?

I created an About Me page (let's call it Page A) for my site, but now I'd like to move much of that content onto my author page and use Page A for more of an About This Site type thing. The problem ...
0
votes
0answers
36 views

Send in for review instead of publishing posts

I'm using a script to add multiple editors to a specific post (custom post type), so when they login, they only can edit the posts they are linked to. The problem is, when a user edits a posts, he can ...
0
votes
1answer
276 views

Display author's name and avatar in post's sidebar

I'd like to display the post author's name and avatar on posts sidebar but I can't find any info on it. Is there a shortcode or piece of code to do this ? Thanks for your help
1
vote
1answer
77 views

What capability allows someone to change a page's/post's author?

I know that by default that administrators and editors can change the author of a page/post, but those with an author role can't. What role capability allows this? Is there a way to give this ...
3
votes
1answer
225 views

the_author_posts_link css class

Currently I'm styling as project where I need to add a custom CSS to the_author_posts_link(). I want to add the class "blog-link" with the the_author_posts_link() . How do I add a css class to it?
0
votes
1answer
610 views

Get only the author profile picture image url inside a loop

I need to get the post author profile picture link. I know I can use get_avatar(); but it displays whole image markup <img src="http://.../img.png" class="avatar img-responsive" alt="image"> ...
0
votes
0answers
40 views

Order Authors by custom field

we just relaunched our blog and one important thing was to set up a page which shows the authors, which worked. But now my chef wants me to sort them in a specific order: there are some authors who '...
1
vote
1answer
38 views

Storing Array from returned database query and using the array in a new query

I'm currently storing results in a variable from a db table like this : $followed = $wpdb->get_results("SELECT user_id1 FROM wp_um_followers WHERE user_id2 = 1", ARRAY_A); This returns an array ...
0
votes
1answer
135 views

send email to author of post on post submission

i am using wordpress directory theme.I want to send email to author of the post whenever he publish a new post. currently email is just sent to administrator only.i didnt find any code utilizing ...
4
votes
3answers
288 views

Display Authors Comments on Profile Page

I am trying to display authors comments on their profile page (author.php), however both codes I tried seem to display everyone's comments. Also the second code is suppose to link to the specific ...
0
votes
1answer
319 views

How to hide posts count and posts of other users from edit.php for contributors and authors

I am using wordpress latest version and running a multi author blog. When any user (contributor or author) go to edit.php, they are seeing posts and post counts of other users. I hide the posts of ...
0
votes
1answer
36 views

Display All Authors only

I want to display only Authors not any Subscriber who write blog in my website. So can you help me on this? <?php //define vars from user selection $howManyAuthors = 10; ...
0
votes
0answers
15 views

two author templates for same user

Is it possible to have two author´s templates? I have a list of registered users and when visitor clicks on a user name (user 1) it takes them to a public profile of that person using author.php. Is ...
0
votes
1answer
43 views

Wordpress author box

I have a wordpress site which on media temple shared hosting. When my site on shared hosting, wordpress author box does not appear. I have transfered my site from shared hosting to my server. After I ...
0
votes
1answer
33 views

Missing content on author archive page

I got problem when I deal with the 'author archives' pages. Initially I used default 'archives.php' from my theme. Then I add a 'author.php' page, tested on my local machine, it was ok to show the ...
0
votes
0answers
12 views

Show a full list of writers articles in their archives

The writers archives are only displaying articles for the current month. Meaning, every article they've done before this month isn't showing. :( Its says "show more" but nothing opens. This is causing ...
0
votes
0answers
108 views

How to conditionally check for author archive when is_author() fails to work because the author has no posts

I am using the author archive to output user profiles, however the is_author() function only works if the author has a post. If I visit an author archive page directly IE: /author/author-11, it has ...
0
votes
1answer
37 views

How can public access to WordPress query (e.g. author=) URLs be redirected?

I maintain a WordPress site (I'm a programmer but don't have much WordPress experience), and we've noticed that Google is ending up with high-ranked links to "pages" on the WordPress site that we don'...
0
votes
1answer
337 views

How to show user role in author.php

php template please tell me how to show author role <?php /** * The template for displaying Author Archive pages. * * */ if ( !isset( $_REQUEST['rtype'] ) && $_REQUEST['rtype'] == '' )...
0
votes
1answer
58 views

How to conditionally output to sidebar of each author's archive and posts by each author?

Specifically, I am trying to conditionally hook a testimonial rotator into the sidebar of specific author archives and single posts for each specific author. Although I am using a specific example ...
0
votes
2answers
45 views

Edit Page Content not showing

I want to edit some pages, already built but I am unable to edit their content (Content is not showing). Although I have Administrator role/rights but not been able to edit pages those are built by ...
1
vote
0answers
252 views

check if author has published posts in custom post type, then send mail

I have a site where people can submit drafts to a custom post type from the frontend. Once a user submits the form, a new WP user is created. If the user is logged in the submitted user e-mail ...
7
votes
1answer
100 views

Hook that get's triggered when the author of a post is changed

Is there any hook that gets trigged when the author of a post is modified from the edit post screen? I can list to the update post hook, but then I will not know whether the author of the post was ...
-1
votes
1answer
172 views

Show woocommerce products in author archive

I've added permissions to authors to add products in woocommerce. I would like to know if there is a way to display products by current user in archives. Is this possible?
1
vote
3answers
33 views

Not getting author rank when using return

I am implementing a section in my website to get the top 5 authors using this code. function ranked_authors(){ $usrs = get_users('role=contributor'); $countarr = array(); foreach ($usrs as $...
2
votes
1answer
305 views

How to display all images “Uploaded By” an author

I have multiple users, that have the ability to upload media. When I look at the media library it shows the file information, and included at the bottom is an "Uploaded By 'username'" How can I use ...
0
votes
2answers
66 views

Create Wordpress bio without backend

I am trying to give users the option to create a user bio, so that it will be displayed in author boxes. However, I do not give my users the option of going through the backend of my website. How ...