Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
2answers
33 views

Can I put in Github the code of a abandoned plugin I want to fork?

My friends. I want to know if I can create a repository of abandoned plugin of wp.org that the author is not mantaining make 2 years. The plugin is this: https://br.wordpress.org/plugins/send-emails-...
1
vote
1answer
23 views

Retrieving Author ID in wp-admin area

Currently able to display the post author ID on the frontend with no difficulties. Returning the ID in /wp-admin when editing a post is proving to be tricky. Here's what I have so far: $...
0
votes
0answers
23 views

how to make author to write comment only his own posts?

i want restrict my registered authors to write comment to other posts except his own posts. Is it possible? I have no idea how to do it. May be need conditional logic but how?
-1
votes
2answers
52 views

how to show all type of author posts in author page (SOLVED)

my site have multiple authors. I need to show all type of author posts in author page that if visitors can see all posts of author when visitied his profile page. this code <?php get_header()...
0
votes
0answers
13 views

wp query et author

I try to display at the end of an article a post-type list of the same author. I try with this code, it works perfectly on the author page but not on an article add_action( 'elementor/query/offres123'...
-1
votes
1answer
48 views

How is get_the_author connected to a custom post type?

I am having issues with certain concepts regarding Wordpress and it's development, if anyone could clarify things for me that would be great! I have an understanding of PHP classes and an ...
0
votes
0answers
28 views

Duplicate posts when using pre_get_posts for author.php

I'm trying to change the main query into the author.php but there are some duplicate posts?! How can I fix it, Thank you! function change_author_query( $query ) { if ( $query->is_author() &...
0
votes
1answer
32 views

WP_Query author parameter not working

As per doumentation Author Parameters #Author Parameters author (int) – use author id. author_name (string) – use ‘user_nicename‘ – NOT name. author__in (array) – use author id (available since ...
0
votes
1answer
32 views

Return author name as a tag using get_author

I'm trying to display the author name as a tag. I looked at many forums and it's referring to the get_author methods and the PHP files from the template PHP. However, I do not know what changes to ...
2
votes
2answers
42 views

Missing Author Information

I am having trouble displaying the author name and avatar on my single.php page. The posts load fine and all the correct information is available. However the avatar and name is no where to be found. ...
1
vote
1answer
33 views

How to only show posts assigned to current user, only in certain post types

im trying to get this code to work. in admin id like to only show posts assigned to current user, only in certain post types like: shop_order, pages, posts. But show all posts in other post types ...
1
vote
1answer
75 views

Author profile visitors in last 7 days in front end without plugins

I'm searching every day and every hour and every minute for a way to track a very simple stat for each author profile to display profile visits by IP and display them as a counter (e.g. 254 profile ...
0
votes
1answer
21 views

What permissions does a role need for the user to be assigned as the author of a post?

I have a Wordpress site with custom roles (except for administrator) and now wanted to create a role so that a user with this role can be manually assigned as the author of a post. I thus created a ...
0
votes
1answer
40 views

Woocommerce: limit user to see only the products he created

I have this code where the authors can see only own posts. I need the authors to see only the products they have created on woocommerce. I know the woocommerce products have no authors by default, but ...
1
vote
0answers
38 views

rewrite url for authors

I have been struggeling with this for a while now and can't seem to get this to work. What i want is the following. I create a custom slug for authors with $slug = sanitize_title( $author->...
1
vote
1answer
65 views

Modifying Author Link to add Author Meta in URL

I have a plugin which adds a custom role called the trip_vendor. I am trying to edit or modify the profile url of this role. Currently, it is example.com/operator/username but I want to change it to ...
0
votes
2answers
14 views

How to get the ability to change the author of a post

Recently it has become impossible to change the author of any posts on my blog. I am administrator off the blog. Other admins have the same problem. It doesn't seem code related; I've checked out ...
0
votes
1answer
31 views

Changing author slug for a custom role without using plugin

I am trying to change author slug for a custom role. A role called trip_vendor is added by my plugin but I want to change the author slug only for this role. I have a function but this changes author ...
0
votes
0answers
23 views

Creating front end admin area for users

I am creating a front end custom admin area for registered users. The logic and everything else in in place, so it works. BUT, I have created this using pages with custom page templates. I feel this ...
0
votes
1answer
26 views

Attaching author tag to the comment

I have found how to highlight comments made by author of the post. However, could not achieve to attach simple text saying this is author for each comment replied by the author of the post.
0
votes
1answer
15 views

How to get posts without author?

I am looking for a way to get all posts without author. They were inserted with post_author = 0; But the following line returns all posts instead of the posts with no/null author get_posts( array('...
0
votes
2answers
20 views

Show text only to the author of the article

How can I be displayed in an article written by a writer in a text format only to the same author.
0
votes
1answer
22 views

Change author base and slug in author link

Hello im trying to change the author link from mysite/author/username to mysite/companies/dataFromUserMetabox i tried the approach from this answer chage author url its working the url changed but ...
0
votes
0answers
18 views

Send Notification to all users that followed some author

I'm trying to send notifications for who followed some author when he published new post! But it always sent to only one user not to all the followers! So how can i send to all followers ids? ...
0
votes
1answer
20 views

Author Date Function not working as expected [duplicate]

I am trying to get whether the author has posted within the last 30 days but this returns TRUE even if the author hasn't posted within the last 30 days. <?php $args = array( 'post_type' =>...
0
votes
0answers
16 views

Front End Ajax Pagination for users list inside author profile page

I really tired of being no one here answering me! I'm newbie with WP, And i'm trying to create an followers/following users list for our users inside their profile page with Ajax Pagination. The ...
0
votes
1answer
117 views

OceanWP settings are missing from Add New Post [closed]

When logged in as Author, the screen options do not include OceanWP settings. If logged in as Administrator, the options do include OceanWP settings. The Author needs these settings to remove such ...
-1
votes
1answer
28 views

remove author and date from all posts [closed]

I've tried including some code in style.css of my theme, but it didn't work. Ex: body.blog .posted-on, body.blog .post-author, body.blog .post-comments, body.blog .entry-taxonomy { display: none; }...
1
vote
1answer
26 views

Function to check if author has posted within the last x days

Is is possible to check whether an author has posted in the last X days? I am currently using this function to determine whether he has posted at all. $args = array( 'post_type' => '...
0
votes
1answer
34 views

Echo Text If User Is Logged in But NOT the Author of post

i am coding a plugin, where user can subscribe to a indvidual author of post (like we do on YouTube). I want to display the subscribe link to all logged in users, but not the author of post. my ...
0
votes
0answers
18 views

Users list with Ajax Pagination inside each author profile for their follower and following users

I'm trying to create an followers/following users list for each user in their profile page with Ajax Pagination. Someone here was helped me to make the Ajax pagination working, but i'm facing a big ...
0
votes
1answer
23 views

How to prevent users/authors from seing IP/email of new commentators?

I have a plugin on my WordPress installation that allows users to suggest ideas. This results in them becoming the author of a post (although their role is still just "subscriber"). I received ...
0
votes
2answers
24 views

Get author image from corresponding article in thumbnail

I want to add an author image for each thumbnail-preview on my homepage. I tried <?php echo get_avatar( get_the_author_meta( 'ID' ), 32 ); ?> but it gives me the same image in every thumbnail. ...
0
votes
2answers
28 views

Want to add post to user dashboard

I would like to add edit.php to user dashboard who registers as subscriber on a website. Code which i using is add_action( 'admin_menu', 'remove_menus' ); function remove_menus(){ if(!...
0
votes
4answers
71 views

Remove dashboard links from wordpress

I am trying to remove two links from users dashboard keeping it on admin but it goes off on both user and admin. One i need to remove from user dashboard and other is contact form plugin link contact....
1
vote
1answer
52 views

How to update author display name on blog posts based on user role

I'm trying to add a verify author badge to my blog and i have been able to use this code function add_verification_bagdge_to_authors($current_user) { global $post; $current_user = ...
0
votes
1answer
16 views

Author name length character limit?

In comments, I want to limit author names. For example, the author's name should be no more than 10 characters. I'm looking for a way to do this. Thank you very much in advance.
0
votes
1answer
76 views

author.php not showing content if Author has no Posts

I am making a custom Genesis theme, and have a custom author.php file that pulls in various custom fields (Using Advanced Custom Fields), and author meta information to the page from the author ...
0
votes
0answers
16 views

How do I get all authors posts of a custom post type outside loop

I'm trying to create a utility script that to add some metadata into all posts of a certain post type. Right now I have it set up to loop through all users $blogusers = get_users(array( 'role'...
0
votes
1answer
18 views

How to display latest posts with authors image

how can U get latest posts from a specific category and post them with the picture of the author. All authors are signed as an author on WordPress and they all have profile picture. Actually it will ...
2
votes
2answers
33 views

Display only custom post type count for current author on the “At a Glance” dashboard widget

I am using this code to display all custom post types along with their count on the "At a Glance" dashboard widget: add_action( 'dashboard_glance_items', 'cpad_at_glance_content_table_end' ); ...
0
votes
1answer
31 views

How do I tag every author in their posts that they have made previously

So here is the situation, I have a wordpress blog site that is a few years old, and every user had a different account to post with. Now what i want is a plugin/script that automatically adds the ...
0
votes
1answer
30 views

Show all authors in drop down panel while choosing author for a post

I would like to see all authors when i am choosing author for a specific post, yet i can only see around 25 of them. We have around 230 authors, how can i see them all? Thank you.
0
votes
1answer
37 views

WordPress does not find author pages in search

I have created a custom child theme based on twentytwelve. I assumed that searching for 'Addy' should return results, as I have an author named 'Addy'. Url is here: https://www.nvk-keramiek.nl.
0
votes
1answer
43 views

How to allow different authors to use same post slug?

We have a multi-author WordPress site where different authors need the ability to use the same slug (post_name). Right now WordPress will append a -2 to the slug but how can we prevent WordPress from ...
0
votes
1answer
71 views

Why is wp_list_authors not picking up Authors from CPT's?

Why is wp_list_authors not picking up Authors from CPT's when I have the supports option enabled? From what I have read elsewhere it looks like I have everything covered but the authors of CPT's ...
1
vote
1answer
117 views

Show Author information on post page on dashboard

When an admin clicks on a post in the WordPress dashboard, is it possible to display the author of the post's details, like meta content? ie. name, phone, email?
0
votes
1answer
133 views

Following/Followers Users list Using Ajax Pagination inside Author Profile

I will try to be clear, I'm using "Users Following System" plugin. And I added a list of the following/followers users into the author.php profile, now I'm trying to use Ajax pagination. For sure ...
0
votes
0answers
44 views

Polylang: Display author´s bio in default language/disable author´s bio translation

I use to output the post´s author bio. In this field I just add the telephone number of the author so that´s in every language the same. Is there a possibility to say Polylang that it won´t ...
0
votes
1answer
27 views

Author name is not working on category page

On my category page post author name is not getting displayed This is what I am using <?php echo get_the_author_meta('display_name', $author_id); ?> Here is my loop <div class="a-article-...