'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
3answers
75 views

Get attachment ID of author_meta image - Attachment Metadata

I've created a custom field in user profile where upload a profile image. It's very simple. To create fields I've used: add_action( 'show_user_profile', 'cover_image_function' ); add_action( '...
1
vote
1answer
457 views

edit comments capability for authors

I am using wp site where registered users have authors roles. I want authors to have permissions to edit their own comments. Now only admin user have capability to edit comments and even editors do ...
0
votes
2answers
380 views

Give Author users the right to embed

I'm trying to allow "author" users to embed in posts. I (the administrator) can iframe, embed, etc...., but authors can not. Can someone show me to give authors 'just' the ability to embed and ...
-2
votes
0answers
21 views

How can I disable author and hide their posts?

I want to disbale authors and after that they gonna be hide such as their posts, media and etc. also on the contrary of above , when i active authors their posts display to every one Any idea?
0
votes
0answers
10 views

Multiple custom post type authors

I've got a custom post types that I would like to make editable by several users. I saw some solutions that used the plugin co-author plus but this only works if I set the authors using the admin ...
1
vote
1answer
517 views

Make user as Default contributor for all Blog Posts

I need to get a different requirement, where a particular user need to set as default contributor. I'm not sure whether wordpress actually makes a user default. But for now i need to make a user as ...
3
votes
1answer
1k views

Search posts by post author name

I want to search posts publish by particular author. For this purpose I added a filter in functions.php: function wpse_29570_where_filter($where){ global $wpdb; if( is_search() ) { ...
-2
votes
1answer
8 views

author.php get current id of author for advance custom field

I'm not sure why there is no result with advance custom fields. i use get_the_author_meta('ID') for other information since it's work with single.php but i want also to display the information of ...
0
votes
1answer
13 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
509 views

Allow an editor to change the author

I am using WordPress multi user and have a set of users set up as Editors who wish to ghost write for another user who is an author. How can they change who the author of the posts is without the ...
0
votes
1answer
483 views

How to change the post author when the post is published?

I wanted to change the author when a post change from draft to publish. I have $_GET['auth_id'] variable in post edit screen like this ...wp-admin/post.php?post=53&action=edit&auth_id=5. I ...
1
vote
1answer
2k views

Force display name as full name

Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default?
-1
votes
1answer
14 views

get author comment id by comment id

I need to get author id by comment id Example FunctionName($CommentID); Return Author ID
0
votes
1answer
12 views

Migrate different author's content to current author

I have a blog and after several years and server exchange there are different authors' names , although only one wrote. Can I migrate them to the current author? Any tips or ideas? Maybe with MySQL ...
0
votes
2answers
537 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
5
votes
1answer
44 views

Restrict one post per author

I'm trying to create an events plugin and so far, I'm through with the following: A short-code that displays a form on the front-end to the user. The event display page that renders the output. '...
0
votes
1answer
920 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
1
vote
1answer
488 views

No authors in change author dropdown

I have added a custom post type "Review", and a custom role "Reviewer". The issue is when logged as admin I take review which current author is admin and I want to change author to a Reviewer I have ...
0
votes
1answer
633 views

Allow Content Author to Publish, But Not Edit or Delete

I am hiring a content writer for my WordPress blog. I will be the sole blog admin. I need to define a role for this writer. I was wondering if there was a WordPress user role that will allow him to ...
0
votes
1answer
618 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"> ...
4
votes
1answer
103 views

author.php with ACF and CPTs

As I write this, I'll do my best to avoid an XY Problem. What I'm trying to do: I'm trying to build an author.php template that: displays data from Advanced Custom Fields on the user's Profile ...
1
vote
2answers
368 views

What are 'authors' in Wordpress, and is there an author 'metabox class' available anywhere?

I am trying to outline a new project where I want to give my users the ability to customize their 'profile' pages in my website theme. Concepts like adding in their own background images, choosing ...
0
votes
1answer
343 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
67 views

Author list based on recently active

My list of authors is now based on post count and I would like it to be based on recently active user. My idea was trying changing the orderby to post_date but it has no effect. Any suggestions to how ...
1
vote
1answer
570 views

Author posts url… way to get display name to be url instead of user's ID?

I'm trying to get my authors blog post byline content to link to their archive page of posts. I've got everything working, but would rather the author post link be: http://example.com/author/...
4
votes
1answer
54 views

Hide specific admin users' posts

I'm currently trying to modify my WordPress site so that Authors can not see a specific Admin's posts while editing, but are still able to see each other's posts (as well as the other Admins). With ...
0
votes
1answer
18 views

I want to link an author to everything from any post type that they publish on the website

I'm trying to create/add a widget to a client's website that lists all non-admin authors and links to their posts. I've been able to do that but one of the authors posts, almost exclusively, using a ...
0
votes
1answer
32 views

Cannot retieve the_content() and the_author() - both returning empty strings

I am creating the following code to display open graph meta data in the header of my single.php page add_action('wp_head', 'mycode_add_og_meta_tags', 5); function mycode_add_og_meta_tags () { ?> ...
0
votes
1answer
45 views

Condition within single.php to send an email to the post author

I have this piece of code (below) that checks if the post was modified within the past 7 days. I'd like another piece of code that I can insert where "Needs Updating" is that will send a basic email ...
0
votes
1answer
18 views

Author Page Create Link to Page That Lists All Author's Posts?

In my author.php page, I'm wanting to create a link that sends the user to a list of all posts by that author. I thought this was a built in function of WordPress, but having trouble finding the ...
1
vote
1answer
21 views

hide something in single page if current author has only one post

I'm trying to hide a div in a single page if the current author of the post has only one post. Any ideas on how to achieve this? <?php hide or don't display if current author has only 1 post ?> ...
0
votes
1answer
19 views

Hook to change Author Info

Is there a hook or filter that will allow me to change the author of a post when someone views the page? Thanks!
0
votes
1answer
455 views

Multiple authors for single post without plugin

I'm new to using WordPress and so, apologies in advance if this seems like a very basic question. I want to have multiple authors for single post. I had seen Co-Author. But I don't have to use plugin ...
0
votes
0answers
22 views

Modify Author Pages to All Users

I have displayed user details in author page. But it works on authors only. How to make author page works for all users?
0
votes
0answers
13 views

Best way to change the author's name on view only

I'm developing a plugin that allows users to sign in and make posts. However, I have a substantial number of users and don't want them to be added as users in WordPress's user database, so I have my ...
2
votes
1answer
901 views

Display posts from an author using search parameters (not author template/query_posts)

Is there a way to retrieve a list of all the posts by an author using search (example: ?s&author=xxx)? I can't use query_posts or author template (don't ask why, take it as a condition). And it ...
0
votes
0answers
17 views

Incorporate Co-Authors Plus template tags into Unpress theme

I am not quite familiar with coding and need help. Currently, I am managing a website that uses UnPress theme on Wordpress and installing co-author plus pluggin. I would like to incorporate the ...
0
votes
0answers
13 views

using session var to filter author media gallery

I got a problem to solve and would like to know if I'm looking the right way to solve this. I have a site where multiple authors can upload images and they all have a profile page (author.php) where ...
0
votes
1answer
38 views

How to get attachements URL from author meta and display them?

I created a form for edit author with "WP User Frontend" and I use a custom meta field for multi upload images that can upload 6 images, with meta name 'management_certi'. My problem is I can display ...
5
votes
3answers
3k views

How to let contributors to create a new revision(draft) editing their published posts

I'm using a custom post type to let contributors have a personal page on the site. Any time a user registers on my site a script creates a custom type post that has the registering user as the author....
0
votes
3answers
1k views

How to give capability (publish contributors posts) to author role?

I am not a PHP programmer, just a simple WordPress user. How can I allow author role to allow publication of contributors posts? What's the technical name for this?
2
votes
0answers
28 views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
1
vote
1answer
33 views

Get WordPress to use another custom “author.php” file (“custom-author-file.php”)

currently, this example code in WordPress: <a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author(); ?></a> turns into: <a href="http:/...
0
votes
0answers
30 views

Author archive only for custom post type

I want to create an author archive for only custom post type. This page will includes only custom posts by the author. And url structure should be example.com/portfolio/author/author-name/ I don't ...
0
votes
1answer
23 views

Return subpages of an author if the parent page was published by an other author

I just stumbled over an issue while programming my own WordPress theme and I need your help. I defined an author.php file which should display the static pages and the blog pages of a given author. ...
1
vote
4answers
6k views

How to get author's name by author's id

I want to show recent posts like this. <ul id="recent-posts"> <?php foreach( wp_get_recent_posts() as $recent ){ ?> <li> <a href="<?php echo get_permalink($recent['...
0
votes
2answers
27 views

Changing the Category for all posts of an Author

I'm trying to change the category for all posts of an author. I've been looking on here for about an hour and haven't found a solution.. Any help would be greatly appreciated :) Thanks, j03
3
votes
1answer
1k views

Change Comment Author Display Name

I am trying to change the comment author name (or more specifically, the review author in WooCommerce) to be First name Last Initial (e.g., "John D." for "John Doe"). I got most of the way there with ...
0
votes
1answer
28 views

Unpublish Authors With not Fulfilled Fields

I want to unpublish profiles of users that doesn't have all extra fields that I've created filled. I use a custom meta_query in a user taxonomy in order to filter those authors, and that work, but it ...
0
votes
0answers
71 views

WP_Query (list) posts according to author's custom field

I'm trying to work out or even find a way to list all the posts according to a custom field of the authors. I'm using WP User Frontend Pro and the plugin allows me to create custom fields for the user/...