The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

0
votes
0answers
12 views

add post type support not showing edit author options for all users

Need to allow all users (admins) to be able to edit the authors of a post. Added this to my wp-admin.php in the inc/functions folder but is hasn't worked: add_action( 'init', ...
0
votes
1answer
26 views

Allow authors to post only in categories they create in WordPress

I'm looking for a way to allow users with an assigned WordPress role (in my case, author) to create new categories and then automatically be restricted to only posting in those categories or the ...
1
vote
1answer
25 views

Author archive doesn't work [on hold]

I'm trying to solve an issue on my website : www.jack35mm.fr I didn't make the theme (just bought it), but the thing is : the author archive page doesn't work. I mean : ...
1
vote
1answer
57 views

Limit posts per author role (excluding admin) in home page

I have multiple authors in my site and want to show just one, the latest post from each one, excluding the administrators. So, if for example: admin1 has posted 4 posts admin2 posted 3 posts ...
0
votes
1answer
17 views

List of authors posts minus very latest

I'm creating an authors.php page to display all the posts for the author clicked. But the list(s) needs to show the very first / latest post so I can style it diferently than the rest of the posts? ...
0
votes
1answer
22 views

How to restrict author to only access one custom post type ?

My installed Wordpress have 4 custom post type and 1 default post type. Basically what i want is that the author can also access particular one custom post type. Author must not see other post types.
0
votes
0answers
11 views

Show authors own posts AND all other authors published posts in dashboard

In the Backend Posts section I'm looking to show only the logged in authors posts and all other published posts. e.g. Author 1 has 3 drafts and 1 published post. Author 2 has 4 drafts and 1 published ...
0
votes
0answers
38 views

Display a link to the author's twitter account

I would like to amend some code to provide a link to the twitter page of the post author, where it exists, instead of the standard link to the archive of that user's posts. I have used the following ...
0
votes
0answers
21 views

Displaying friend's posts only

So I am using the WPMU Dev friends plugin which adds functionality for WP members to search for friends and to add new friends etc. There is a specific function defined in the PHP file which says it ...
0
votes
2answers
18 views

Display emails of users who already posted at least once

I need to display on a page the list of emails of the users who already posted once on my site. I have this snippet of code: global $wpdb; $min_posts = 1; $author_ids = $wpdb->get_col("SELECT ...
1
vote
1answer
20 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
47 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
16 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
56 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
33 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
12 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 ...
2
votes
0answers
51 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
15 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
33 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
39 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
19 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
17 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
50 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?
1
vote
2answers
99 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
33 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
37 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
33 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 ...
2
votes
1answer
233 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
10 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
62 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
55 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
54 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: ...
0
votes
1answer
58 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
30 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
134 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
55 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 ...
2
votes
1answer
138 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
200 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
28 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
31 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
75 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
255 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
115 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
34 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
39 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
24 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
11 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
69 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 ...