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
1answer
28 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 ...
1
vote
2answers
30 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
30 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
73 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
31 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
35 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
64 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
28 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
15 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
23 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
12 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
19 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
10 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
17 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
19 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
13 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
39 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
21 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
27 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
17 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
22 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
22 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
27 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
3answers
40 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....
0
votes
1answer
40 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
12 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
57 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
17 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
28 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
28 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
24 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
55 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
96 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
126 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
36 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
25 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-...
0
votes
1answer
16 views

How To Display Author Popup on Entry Meta (Genesis Framework)?

How to when the mouse pointer on the author name can display Author Popup like this site? https://www.dietdoctor.com/low-carb/keto Thank you!
0
votes
1answer
35 views

I've removed my /author/ slug but it clashes with new and existing pages. Any fixes?

I've successfully removed my author slug using this tutorial: https://wp-snippet.com/snippets/remove-author-prefix-from-slug/ so it's like website.com/author/cixxy to website.com/cixxy My question ...
0
votes
1answer
27 views

How do I edit disclaimer/contact information?

I inherited this wordpress website called RxStudyGuides to use as a study tool for pharmacy students. However, the owner and creator of the website still has there contact information on the website ...
0
votes
1answer
15 views

How to add author on WordPress Pages? Not blog article page

I am having trouble adding author on each pages of a website built in WordPress. Any idea how can I do that automatically? Thanks
2
votes
1answer
26 views

Display only entire most recent post on author page?

Is there a way to display only the most recent post in its entirety on the author web page instead of all the posts? In other words, I would like the author web page to look just like a single post ...
1
vote
0answers
20 views

Show posts by a custom post author

I have a listing site and various authors create custom posts (job_listing) On the listing post itself, I would like to show the links to the last 5 NORMAL blog posts by that author Is this anywhere ...
0
votes
0answers
24 views

User Comments on separate author page

I have added the user comments to author page (archive template), after the blog posts if any. So on page www.my.blog/author we have blog posts and all the user comments display below the posts. ...
1
vote
1answer
403 views

Permit users with author role to edit a custom post type

I have this already coded project which has a custom post type with a certain behavior: it is only a single post and admins/editors/authors can only edit its content. it's content is a custom data ...