'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

4
votes
1answer
39 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
906 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
483 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
626 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
533 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
99 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 ...
1
vote
1answer
446 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
1answer
312 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
65 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
549 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/...
1
vote
1answer
511 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 ...
4
votes
1answer
52 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
14 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
26 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
42 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 ...
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() ) { ...
0
votes
1answer
17 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 ...
0
votes
1answer
453 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
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
2answers
515 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 ...
0
votes
1answer
18 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!
-1
votes
1answer
449 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
21 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
11 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
884 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
14 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
31 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
2k 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
30 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
29 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
21 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
58 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/...
0
votes
1answer
26 views

query post by author gender

I'm using utimate member plugin on my website. for each member (author), I have a field to store the member gender. (Homme / Femme). the data is stored in my database, inside wp_usermeta. meta key ...
1
vote
2answers
1k views

How can I set wp_dropdown_users so that it shows only authors?

I want to list in a drop-down box all users who have role "author" How can i do it? Thank you
0
votes
0answers
20 views

Get current user posts number inside bp-custom.php

I need to get the number os CPTs displayed author publish to define if a new nav item will be showed or not. But it's not working. The var_dump return 0: add_action( 'bp_setup_nav', function() { ...
0
votes
1answer
29 views

Declare global var from Template File and use it in Functions.php

I am using the wpseo_title filter to rewrite the authors page titles from my site. I have the following code in author.php template: <?php global $author_page_titles; $author_page_titles = ...
0
votes
1answer
30 views

How do I retrieve a users' last 5 posts?

How do I retrieve a particular users last 5 blog posts? Currently, I am trying the following approach, but it seems that it is retrieving the actual post titles and permalinks: <?php $...
0
votes
2answers
198 views

Guest Author - How to modify my custom function code if the guest author URL will follow a particular pattern/format?

Based on code the awesome G.M. provided in an earlier question (Use Custom Fields to Create Guest Author Link), I now have a custom function that uses custom fields to support guest authors. The code ...
0
votes
0answers
17 views

Loop through author and edit post tags

I'm setting up a 'free marketplace' for a friend based on wordpress and a woocommerce theme (makery). Each user has his own shop and products. Both the shop and products are custom posts that belong ...
0
votes
3answers
358 views

How can I add “posted by 'author'” to each post?

With a multi-user blog, how can I add a posted by Some Author line, or something similar, at the top of each post, as in this blog? I assumed this should be something very basic, and there should be ...
0
votes
0answers
25 views

loop authors with permalinks to posts for custom post type

I have created a custom post type called "adoptions", I have created an adoption-page.php and a single-adoptions.php. In the adoptions-page.php I have loop which displays all the current post from ...
0
votes
0answers
9 views

Save Hist in Author Pages by Date (Year and Month)

I'm trying to save the hits that a page receives in the database so I can display them in the front-end if required. I need the hits that an author pages receives and save them by month. I'm a bit ...