Skip to main content

Questions tagged [author]

'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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
70 views

How to Dynamically Change the author_base URL Slug by Language in WordPress?

I am working on a multilingual WordPress site using WPML and I am trying to adjust the author_base URL slug based on the user's language. My goal is to have different slugs for each supported language ...
Robin Martijn's user avatar
0 votes
0 answers
14 views

Link Wordpress Comment Admin Author name with About page

I am looking for a functions.php code which will link my admin author name in WordPress Comments to the About page of the admin. Currently the code I am using links my post admin author name with the ...
Swagatam Majumdar's user avatar
0 votes
0 answers
35 views

Include posts under a custom taxonomy in author.php

The author’s archive (author.php) on the website I’m working on displays only the posts by the current author. I have a custom taxonomy called “co_writer” which I use to simply tag a post as having ...
Sum's user avatar
  • 11
1 vote
0 answers
33 views

Include posts with a specific custom taxonomy term in author page

I created a "co_writer" custom taxonomy with author names as terms. I only use this taxonomy to output their names as co-authors on multi-author posts. As such, posts in which an author's ...
Sum's user avatar
  • 11
0 votes
0 answers
16 views

How do you create a query to hide all posts with a certain meta key, unless current user is the author of that post, without custom SQL?

The scenario, which I would have thought is quite common, could be where a blog post has been assigned a particular meta, and should be removed from public display, apart from the original author who ...
Ben Roberts's user avatar
1 vote
0 answers
57 views

Problem with "is_user_logged_in()" and woocommerce (Code for custom media upload for each author.)

I'm sorry for my english... I am using the following code to create separate media directories for each author.. ( Thanks to https://wordpress.stackexchange.com/a/400352/220907 ) function ...
Andrei Ka's user avatar
2 votes
0 answers
28 views

users followin the blog post author

I have a code which is supposed to follow the author of blog post but whenever the follow button is typed it gets an critical error on the wordpress. heres the script <?php // Get current user $...
heyyou's user avatar
  • 21
0 votes
0 answers
20 views

How to make the Post Author name fixed as "Editorial Staff" even if there are multiple authors?

I want the Post author's name to be fixed as "Editorial Staff" and not show the multiple authors' names. Can anyone assist me please?
Frankie's user avatar
  • 11
1 vote
0 answers
37 views

Assign new post author IF another user in custom field on post transition

I have a post that is being made on behalf of someone else - so a team member adds the post for the author using a frontend form, but when the post status changes to publish, I want the selected user ...
Yasmine Finbow's user avatar
0 votes
0 answers
193 views

Change get_author_posts_url / Author URL via filter

I have a follow-up question to this answer here: Create guest author page via php I would like to modify the get_author_posts_url function to get a custom taxonomy guest author slug. I need this ...
usina's user avatar
  • 13
1 vote
1 answer
32 views

How to load locally saved author photos based on author ID

I'm looking for a way to allow the author photo to be shown without the author having a gravatar account. It seems this should be based on author id rather than email. Basically I just want to be able ...
Mikedefieslife's user avatar
-1 votes
1 answer
68 views

How to display Author Profile based on Custom field value

I need to display additional author profile based on Custom Field Value. I am using native wordpress custom filed declaration. so for my custom field name is $coauthor = get_post_meta( get_the_ID(), '...
Bhargav Joshi's user avatar
0 votes
1 answer
226 views

Create guest author page via php

I am building a website that has many guest authors, but there is only one admin account that publishes it all. Instead of creating multiple accounts, which would be impractical due to the high number ...
usina's user avatar
  • 13
0 votes
1 answer
981 views

Query filter on custom post by current author in post widget for elementor query id

I am using post widget in elementor pro. Idea is to show all posts by a specific custom post type. Now, I want to apply also some filters in particular I want to show only posts in a particular status ...
Ioria's user avatar
  • 29
0 votes
1 answer
141 views

the_author function is displaying wrong name and url

There is a problem by using the_author(); in file author.php I use this code to display author name heading <h1 class="page-title"><a>آخرین اخبار</a> <a href="<?...
akhbarejadid's user avatar
0 votes
0 answers
149 views

How to add avatar to authors list?

I have code that shows authors list: <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> It works fine, with number of posts per author and author page link https://images2.imgbox....
arteaster's user avatar
1 vote
1 answer
559 views

How to force the Author Dropdown to display in Quick/Bulk edit?

I believe this issue is a bug with the latest version of WP on multisite (I've reported it) but until they fix it I really need a simple solution. I have multiple authors (Administrator and Editor ...
user3593214's user avatar
0 votes
1 answer
12 views

How to have certain WordPress settings set by default on a per author basis

I have a WP author who always needs to change various settings when creating a new post: Display author box (post format) Display last updated (post format) Select 'News' category (categories) Select ...
user3435960's user avatar
0 votes
0 answers
38 views

Adding plugin editing capability for Author

I am new to php environment. Any idea how we could enable plugin editing roles and capabilities for Author or another scenario could be adding as sub-admin with limited roles. Any help would be ...
B1ll1onBaba's user avatar
0 votes
0 answers
156 views

"Author" custom post type

I have an existing WP site where there is a custom post type called Author with a few hundred entries. I need to create a single entry page from these authors, but single-author.php just returns a 404....
Gabi C's user avatar
  • 101
0 votes
1 answer
221 views

Assign author to category and not only posts

Is it possible to assign an author as a writer for a category? I know that authors are mainly for posts/pages, but my client has a site structure where the categories basically act as pages. I could ...
Fernando Redondo's user avatar
1 vote
1 answer
45 views

Whitelist Author of Private Post

Does anyone know of a way to whitelist the author of a private post so they never have to enter their password to access their own post on the frontend? If they are logged into the site, there must be ...
Aaron Wimberley's user avatar
0 votes
1 answer
29 views

Changing url of author page

I have author page on my website: https://inwestujfinanse.pl/author/admin/ when I try to change it normally in https://inwestujfinanse.pl/wp-admin/profile.php nothing happens. Is there any way I can ...
Robert Baczkowski's user avatar
0 votes
1 answer
227 views

Display if author page is author page of current user

in my multi author website I have a button that users can upload their avatars. I need to display this button in author page. I can do it. I added this button to author page. The problem is that ...
Teymur Abbasov's user avatar
1 vote
1 answer
139 views

Filter post by current 2 differents users id

I'm filtering my custom post type based on author. I want all users to be able to: 1 - in the list everyone can see the posts created by the admin. 2 - users can also see their own posts in the list, ...
naber brene's user avatar
0 votes
1 answer
81 views

Get all comments of author's posts

Hello I have multi author website. I want to display all comments of posts created by author in author page. Please help me. I found this code but fatal error <?php $args = array( '...
Teymur Abbasov's user avatar
0 votes
2 answers
715 views

Best way to set up "reviewed by" in Wordpress?

I would like to show both "author" (one or more) and "reviewed by" (just one person) for Wordpress posts and pages on my website. This would be for example a situation where an ...
Markus Ossi's user avatar
0 votes
1 answer
462 views

Could we know who published a post on WordPress?

Besides knowing the author, could we know like which user with the Editor role published a post? Is this being tracked in the db?
ratib90486's user avatar
0 votes
1 answer
22 views

co-authors plugin - inline listing

I'm trying to set up co-authors plugin in order to show articles authors function inl_users() { if ( function_exists( 'get_coauthors' ) ) { $coauthors = get_coauthors(); //array_shift($coauthors); ...
user avatar
0 votes
1 answer
68 views

Display Author name PHP (Selfmade Plug-IN)

I have a problem for which I need help, because I just can not find a solution myself. I have taken over a site where a selfmade plugin was created by someone before.. Using the default plug-in „...
Faeb's user avatar
  • 1
1 vote
0 answers
38 views

How to encode author ID in the author permalink

My permalink urls for users look like /author/1 (original author ID) Is it possible to replace author ID with an encoded number In my dream author permalink should look like /author/56c96e766f8334 (a ...
ooneland's user avatar
0 votes
0 answers
358 views

Check For get_post_meta on Author Archive Page

I've had a good look thru the Similar Questions for an answer and i'm looking to check if a value for a custom field key on single posts has been added using get_post_meta(); however i want to use ...
Brad Dalton's user avatar
  • 6,967
1 vote
0 answers
740 views

Media Library Grid View Custom Filter

I'm trying to use the Backbone, customizing the Author Filter in media library grid view. I found lots of information on the Internet, and create filter on the toolbar. But there is one error I can't ...
Tunglin Li's user avatar
0 votes
0 answers
16 views

Assignt automatically two categories by author

I'm looking for a way to automatically assign two categories each time an author makes a blog post: General category (will always be the same for all authors). Author category, with de same exact ...
Desfilis's user avatar
0 votes
1 answer
85 views

How to get custom post_author?

I have a post type that inserts email as a post. I also created users according to those emails. This is how I added my post type. $post_array = array( 'post_content' => $mail['...
Rohit kc's user avatar
0 votes
1 answer
1k views

How to link current logged-in user to their author page via URL (Beginner)

I require a URL that links the current logged-in user to their author archive page. I came across some code from a similar question here (see below). It works for me but unfortunately, it links to the ...
Daniel Moore's user avatar
0 votes
0 answers
84 views

How can I hide comment of the authors from their published posts?

How can I hide the comment of my authors about their own posts? I used plugins and it was successful, but the comments are displayed somewhere onthe posts of authors themselves and i cant do anything ...
user214307's user avatar
0 votes
1 answer
25 views

How to target a post by a sepecific author?

This is something simple, When a user is visiting a post, I want the code to check the author of the post and then deliver a HTML. Here is what works for category. <?php if( in_category( 412 ) ){?&...
Muhammad Waqar Akram's user avatar
0 votes
1 answer
378 views

Remove Author Links

I'm trying to remove the author pages as well as the links to the author pages on my wordpress website powered by Divi. First, I disabled author archives and pages with the Yoast plugin. Then, I used ...
Quentin H.'s user avatar
0 votes
1 answer
105 views

How to display ACF coustom field from category on author.php

I use ACF added a coustom field for category. it works fine in archive.php , here is code: <?php echo get_field('students_no_class', get_queried_object() );?> but it doesn’t work in author.php ,...
user18787's user avatar
0 votes
1 answer
92 views

How to share the author's archive?

<hr> <h3><?php esc_html_e( 'Forums', 'bbpress' ); ?></h3> <?php if ( bbp_get_user_last_posted() ) : ?> <p class="bbp-user-last-activity">...
Sportowa Faza's user avatar
1 vote
1 answer
84 views

get_the_author_meta( $field, 0 ) returns the administrator $field

Just discovered that the get_the_author_meta( 'birth_date', 0 ) returns the administrator birthdate. The same happens with other $field parameters for $user_id = 0. Is this an expected behavior for ...
Yuri's user avatar
  • 1,131
0 votes
1 answer
283 views

wp query to use both author id and meta_query

I'm trying to display posts of an author by id OR those posts which have a meta value as author ID. I have a custom field in the posts section as Additional Author (additional_author) and now I want ...
Rameez Iqbal's user avatar
0 votes
1 answer
135 views

Use of comment_reply_link_args filter

i am trying to create a filter like this add_filter('comment_reply_link_args','change_author_title'); function change_author_title( $args ) { $defaults = array( 'add_below' => '...
Honoluluman's user avatar
0 votes
1 answer
783 views

Select other roles as custom post authors

I created a custom post type ("Organization"), and I've also created a custom user role ("Representative"). Also, I've ensured that the Representative role has read/edit/create/...
wesf90's user avatar
  • 125
0 votes
0 answers
63 views

How can i set media attachments to the author of the post or page for already existed posts with attachments

I have been uploading posts for multiple authors in my site and the attachements (photos) are registered all in my account. Is there a way to set the attachements to have the author of the post ? I ...
Honoluluman's user avatar
0 votes
0 answers
36 views

Convert author metadata to a custom field

I have an old wordpress (newspaper) with hundreds of different authors but just one person that works in the backend to post the new articles. Every time he has to create a new author in order (with ...
Lucio Colavero's user avatar
0 votes
1 answer
91 views

Counting instances of words in the results of a post query

I'm way over my head with this one and wonder if anyone can shine a light on where I'm going wrong. I am grabbing some authormeta for the resulting posts of a query, and I want to tally up the number ...
Lorn Waterfield's user avatar
0 votes
2 answers
294 views

Restricting displayed posts to posts from only select authors

Is there any hook or filter I can use programmatically to restrict posts displayed in the frontend archives and in the dashboard to posts only from specified author ID's? We've been getting a lot of ...
Tuzz Samuel's user avatar
0 votes
0 answers
49 views

Remove Username and just show Name in Author Metabox in backend

In the Author Metaboxes for Posts / pages / custom types, it shows: Name (Username) Is there anyway to customize this to just show Name only? Or maybe Name and Role? I am pretty sure if it done with ...
Tamerax's user avatar
  • 21

1
2 3 4 5
18