Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

1
vote
0answers
8 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
23 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
27 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 ...
0
votes
1answer
16 views

Display Random Post in Author Page

By default when we open any author's page, WordPress displays latest posts from that author first. What I want: If anyone opens any author's page, it will display random posts from that author. I ...
0
votes
1answer
9 views

Need to display author's email id in the “Edit post” field in wp dashboard. How do I do this?

I have created a custom post type & have enabled frontend posting for the same. I need the Edit post page to display the original author's email id. I already have "post author" displayed, but ...
0
votes
0answers
17 views

How do I remove an author’s name in shared links? [closed]

As I say in the title I'm trying to remove the author name from a shared product link. I'm using Woocommerce. I've tried to google this but can't seem to find a solution. It shows the author name ...
0
votes
0answers
11 views

How to force authors to 'submit for review'?

So currently when authors add a post they can publish it straight away. How can i change it so that all their posts need to be reviewed first? I've seen a few codes that can solve that but when it ...
2
votes
3answers
46 views

htaccess rewrite for author query string when WP is in subfolder

I have successfully forbidden access to any kind of author pages whether trough /author/username/ or the ?author={#id} query string. I did this with this added to the beginning of my htaccess file: &...
1
vote
1answer
57 views

Hide Author.php template from specific user role

I have a author.php template that styles a user profile (custom role: agents,etc) I have a blog and Editors & Contributors can post articles. Problem When a viewer on the blog clicks an ...
0
votes
1answer
54 views

Add Date and Author to Posts

I need to add the date and author to blog posts. The line needs to read like this example: Posted on January 20, 2018 by Name Clicking on the date will take you to a page with all posts published on ...
0
votes
2answers
27 views

Yoast SEO plugin open graph add meta tag to fetch Avatar from Author Page

I'm trying to create a new og:image for author avatar when the users sharing their author profile page to Facebook. I'm a newbie with WordPress, After searching for more than 6 months but i'm always ...
0
votes
0answers
12 views

Styling the post author meta box without editing the wp core

I'm using Advanced custom fields so that I could place a checkbox 'Certified' in user panel. I look at the user profile and check the box if the user meets certain criteria. I would like to style the ...
1
vote
0answers
7 views

wp-comment author- url +, email filter hook

Don't know how to change '@' and 'HTTP/S' in ALL comment-stuff, so those will be displayed in WP as unclickable contents. Do you have the knowledge and patience to straighten the following lines? ...
0
votes
0answers
16 views

Send email to users when they get new followers

I'm using a simple plugin "user following system" And all what i need to do is sending an email after the users get a new followers. I think this is the important part of the plugin code: function ...
0
votes
0answers
12 views

Author Archive Page just Show Default Post, not my CPT created using Pods Framework

I had a little problem when I created the archive page for the Author to show my CPTs and Default Post created using Pods Framework on a page, at a time. I made some CPTs called "Literature" and "...
0
votes
0answers
64 views

How to get the count of Following and Followers for users

I'm using a plugin "Favorite-Authors" and the plugin owner stopped updating, and i just want to get the followers count of who followed me or the others, I can get the following count by using the ...
0
votes
1answer
14 views

Creating User Profiles using author.php

I am trying to create a user profile template using author.php. However, the template remains blank if I try to see the profile of a user that has not created any posts. www.website.com/author/user1 -...
0
votes
1answer
26 views

How can I disable author pages without 301 redirects?

I have disabled the author pages on my WordPress blog using the Yoast SEO plugin, but I saw that when I click the author name, it just redirects me to the homepage. Can I change the URL myblog.com/...
0
votes
0answers
20 views

How to add verified badges after the names of authors, admins, editors, contributors?

If user = author, admin, editor, contributor (in Post, Comment, Author Bio < Everywhere), then #name:after { font-family: FontAwesome; content: "\f058"; font-size:18px; font-weight:...
0
votes
0answers
21 views

Wordpress Yoast Seo open graph automatic fetch Avatar from Author Page

I'm trying to create a new og:image for author avatar when the users sharing their author profile page to Facebook, i used wpseo_opengraph_image filter, but when i share the link for the first time ...
1
vote
1answer
17 views

URL rewrite add author as base

Im trying to get an author as slug for my designers website. I will give a example below of what im trying to do: I have a designer named "Designer A" with nicename "designer-a". I have an art object ...
-1
votes
1answer
32 views

How to get the total count of Favorite/Favorited authors

I'm trying to get the total favorite/Favorited count for each user, i'm planning to add the counts into author.php to show how many authors Favorited him and how many he favorite others, this the ...
0
votes
0answers
7 views

switch_to_blog author meta

I'm running WP Multisite (7 sites), I'm using switch_to_blog to get some posts from another blogs in my network, with posts i don't have any problems, but when i try to get for example author meta ...
1
vote
1answer
29 views

Dynamic User Id

How do I get the user id of my users dynamically from a custom function? As in not just the id of the currently logged in user but all users depending on which user's profile that you're on. Any help ...
0
votes
1answer
25 views

Trouble with calling an imploded variable in an array

I'm having trouble with calling an imploded variable that is then formed to an array and called in a post loop argument. $user_id = um_profile_id(); // Get current user ID $...
0
votes
1answer
43 views

Comments counter only for Authors Posts

I am building a blog website with many authors. So i have been trying to keep privacy for each author in the back end admin area. I have been using a nice plugin (https://wordpress.org/plugins/view-...
0
votes
0answers
24 views

Can't use Persian/Farsi in Author slug (returns 404)

I have modified author links to show nickname instead of username, using this tutorial. It works correctly with English names, but when I use Persian, it returns a 404. What's wrong? I've also tried ...
0
votes
1answer
13 views

Show author image at home page latestest posts plugin

On my home page, I'm showing the last 3 blog posts with their respective titles, texts and their featured images. I need to change the featured image at homepage to each blog to the image of the ...
0
votes
1answer
19 views

Post by category+author not working!

Hi guys, someone know why this code is ignoring the author id and is giving to all logged user the same post, i want to show a single post related and published by logged user? all user has a post in ...
0
votes
1answer
28 views

Disable Wordpress Comment Author Name

I am using the Wordpress theme Switty and was wondering how to entirely disable the comments section's poster. I need to create a member-only, anonymous comments section and am using Wishlist Member ...
0
votes
0answers
34 views

Change Wordpress Author by PHP (Frontend)

I want to change the Post Author using a dropdown field, on front-end, when have logged is as admin (or some other rule). I actually have this code: <form action="" method="post"> <?php if (...
0
votes
0answers
34 views

Custom post type support for get_users and ( get_author_posts_url( $user->ID );

I'm creating a knowledge base using a plugin and am stuggling to create a page listing authors with a link to their posts. The plugin uses a custom post type (epkb_post_type_1) for articles. The theme ...
0
votes
1answer
24 views

On Wordpress Search, how to search post from Author meta also

With below code working for searching with post title and post content. And also after installing plugin 'ACF: Better Search', the post is also searching from the ACF fields and give search result on ...
0
votes
0answers
17 views

Author is empty on server, not in localhost

I have an odd case here. This is one of my template parts: $BASE_URI = get_template_directory_uri(); global $post; $cats = wp_get_post_categories($post->ID); ?> <div class="row"> &...
0
votes
1answer
24 views

Auto assign author to new posts with wp_insert_post_data

I need to make the default author for all new posts be already selected but leave existing posts unmodified. So since the default post status is "draft" i thought to only do this if the post is a ...
0
votes
1answer
19 views

Pulling author name via $_GET parameter

So I'm running a few ACF forms. One creates the post, and then I have an edit post form that edits the post via a form that populates based on the post id. So my edit post url: site.com/edit-post/?...
0
votes
1answer
25 views

Only allow posts with a specific term to only be viewed by other authors with the same term in their post

I have lots of authors each with a post each. I only want posts that have a specific term (from a custom taxonomy) to be visible by other authors with the same term in their post. In other words, if ...
0
votes
0answers
35 views

Do not duplicate authors in single loop

I'm trying to exclude authors duplication on single loop. <?php $author_ids = array(); $args = (array( 'post_type' => 'post', 'posts_per_page' => 3, 'author__not_in' =&...
0
votes
1answer
20 views

Change all author links in Blog roll

I want all the author links on my blog page to go to a specific url ("/about") instead of the individual author pages. I know this can be done easily with JavaScript, but is there way to do it in ...
0
votes
0answers
15 views

How to show only posts section in WP dashboard for user Author

I removed every items from WP dashboard for user Author inserting a function in functions.php and I also restrict media library for him. I dont' try to 'obscure' dashboard page for user Author (the ...
0
votes
0answers
33 views

Author.php Page views counter

Wondering if some one can help me. Im looking for a page counter for the author.php Ive got about 300 authors on the site and they would like a counter to show them how many times there "profiles" ...
1
vote
1answer
28 views

Auto “expire” all of an authors posts on spcific date

Ok, so here is a slightly weird one that I could not find an answer to... yet. I've built a classifieds site using WP-Types, but ignore that fact for now. Is there any way to auto-expire all of an ...
0
votes
0answers
20 views

Create a shortcode to display a genesis author box for a specific user on any page

I am trying to create a shortcode to display an author box for any user on any page in a genesis theme. [display_author_box user="5"] //for user with id 5 Here is my code: add_shortcode( '...
0
votes
0answers
34 views

Delete Post by User

Been trying to come up with a way to remove posts by a user when their role is changed. I am using woo subscriptions which gives a user the role subscribed when they join. However when they cancel it ...
0
votes
2answers
46 views

Show Custom Post Type by Author

I would like to set up a function in my functions.php file in a theme so that when a custom-post-type is being viewed, if the user clicks the author name in the post, it only shows CPTs by that author,...
0
votes
0answers
21 views

Adding Author Box/description to sidebar for multiple users with multiple posts

I was wondering if anyone knew of a widget or solution that lets you add an about me section in the sidebar with many different authors.I want it so that if author A were to make a post then Author A'...
1
vote
2answers
41 views

Generate an Email address from that of the Post Author

In a theme I'm developing I would like to have a button with a mailto: href so that it when a user clicks on it, it generates the email address dependent on the post author. I've managed to get it so ...
1
vote
1answer
34 views

WP authors page

I'm kind of new to WP and am starting to delve into the WP codex and don't know how to figure out how to change a default slug. Say I have a url to an individual author like so: https://www.website....
1
vote
1answer
63 views

Change author slug and functionality

Please help me solve this problems: Problem 1 AFAIK, http://exmaple.com/author maps to nothing (a 404 error page) and http://exmaple.com/author/{username} maps to posts authored by {username}. I ...
0
votes
1answer
31 views

Get 404 when try open author page

I am having a problem when I try open url /author I always get 404. For example if I open url http://example.com/author/author-1 - OK http://example.com/author/ - 404 why? I try to create page-...