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
10 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
10 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
29 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
24 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
15 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
0 votes
0 answers
20 views

WP_QUERY with both author and post_type set (makes me crazy)

If I do this $args2 = array( 'post_type' => 'post', ); $query2 = new WP_Query($args2); error_log($query2->request); Then I see this result SELECT ...
Ioria's user avatar
  • 29
0 votes
0 answers
11 views

How to change the url of the author to a specific page?

I want to change the url of the author to a specific page. from http://xuzhousoft.com/blog/author/zhuliang/ to http://xuzhousoft.com/zhuliang/ how to do this?
George Lu's user avatar
1 vote
0 answers
50 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
27 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
19 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
33 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
163 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
25 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
57 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
199 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
792 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
124 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
136 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
485 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
33 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
117 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
132 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
44 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
24 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
141 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
138 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
70 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
552 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
298 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
18 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
65 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
35 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
317 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,926
1 vote
0 answers
648 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
15 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
81 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
899 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
72 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
23 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 ) ){?&...
Waqar Akram's user avatar
0 votes
1 answer
336 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
101 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
81 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
63 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,121
0 votes
1 answer
211 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
117 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
755 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
61 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
33 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
56 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

1
2 3 4 5
18