Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
0 answers
34 views

Query posts by post type, author and post meta

Bit of an awkward one here, and there may not be a solutions within current WP core. Basically I have a CPT called "connection" with a custom meta field called "outcome" which ...
Lorn Waterfield's user avatar
0 votes
1 answer
476 views

Author comment count in author page

hi i want to show author comment count in author page. this code can display current user comment count but i dont want current user i need any user please help me /* user commnet count */ ...
Gidromasservis QSC's user avatar
0 votes
1 answer
117 views

How to create page for user?

I'm using author.php to display all user and their info. I would like to add a separate page like this : domain.com/users/user_name/ABOUT Is there a way to add a page (ABOUT) and retrieve info of ...
mems's user avatar
  • 73
1 vote
0 answers
266 views

Delete User via Frontend

I have made a table list of registered users. It is accessible by admin role only. <table class="table table-striped w-100"> <thead> <tr> <th>Clock ...
Prusakov's user avatar
  • 125
-1 votes
2 answers
52 views

how to show Author post type count

I have multi author wordpress site and every author can publish posts from two different post types . i want to display author post count by post type in author.php . According to codex.wordpress i ...
Gidromasservis QSC's user avatar
0 votes
2 answers
776 views

Order users by user role

I have custom fields in the user profile that displays in the team page. It reads "director" "researcher" "graduate" "intern" and some others. When adding a new team member, you pick from a select box ...
artist learning to code's user avatar
0 votes
1 answer
268 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 ...
Mohamed Mokhtar's user avatar
0 votes
1 answer
158 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 ...
user avatar
0 votes
2 answers
40 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(!...
Ferna's user avatar
  • 3
0 votes
1 answer
50 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 ...
RIcky Arora's user avatar
0 votes
1 answer
56 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 ...
Cixxy's user avatar
  • 13
1 vote
0 answers
540 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 ...
BuzzinBilly's user avatar
0 votes
1 answer
208 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 -...
Philipp K's user avatar
  • 193
1 vote
1 answer
476 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 ...
Matt H's user avatar
  • 111
0 votes
1 answer
258 views

Author permalink

I have changed my permalink "author". Now your slug is "user". But the user page slug is also "user". How can I make sure there is no conflict between both slugs? I hope help, please! Thanks
Nami's user avatar
  • 1
0 votes
2 answers
2k views

Changing Wordpress author name in database

I originally begun my wordpress site using a psudonym. Over the past few years I have been attributing my own name to all articles and have had the author name options switched off. Now I'm changing ...
smashingtuck's user avatar
1 vote
0 answers
42 views

Create Next and Previous Link to User orderby Last Name

Within author.php, I have a left and right arrow that is supposed to move to the NEXT or PREVIOUS user orderby based on last_name. So if I had users with these names: Julie Brown Jane Cook John Doe ...
user1543534's user avatar
8 votes
2 answers
1k views

Use author author display name in permalink structure for pages and posts

I need to add the author name as a subdirectory prefix for all user's posts and pages. For example: example.com/johndoe/ //The author page for John Doe example.com/johndoe/category/test-post/ //Test ...
bigmike7801's user avatar
0 votes
1 answer
62 views

How do I retrieve a users' last 5 posts?

How do I retrieve a particular users last 5 blog posts? Currently, I am trying the following approach, but it seems that it is retrieving the actual post titles and permalinks: <?php $...
Moose's user avatar
  • 292
1 vote
1 answer
929 views

How to restrict author to only access one custom post type ?

My installed Wordpress have 4 custom post type and 1 default post type. Basically what i want is that the author can also access particular one custom post type. Author must not see other post types.
Biren's user avatar
  • 26
7 votes
2 answers
2k views

Change the author slug from nickname to ID

I've changed the default registering option by allowing people to sign up with their e-mail addresses. They also have an option to add their firstname, lastname but it's not required. // Allow email ...
Laniakea's user avatar
  • 503
0 votes
3 answers
589 views

How do I change the user via SQL?

I change a user via SQL in wordpress: SET @old_user='old_user'; SET @new_user='new_user'; UPDATE wp_users SET user_login = replace(user_login, @old_user, @new_user); UPDATE wp_users SET ...
SparkAndShine's user avatar
2 votes
1 answer
176 views

WP-Admin edit.php & post.php slowdown after import of 10k users

Situation: Clean wordpress install No plugins VPS server 5.2ghz / 4gb RAM (Default Directadmin) Import of 10k users Problem: WP-Admin edit.php and post.php take >4sec to load. A custom post type ...
MeProtozoan's user avatar
2 votes
1 answer
417 views

Total Word Count For Posts And Comments By One Author

How can I count words in posts + tags + comments and display the number of total words used by each author ?
user55179's user avatar
2 votes
1 answer
6k views

Getting author page slug from get_users() or get_userdata() functions

wp_list_authors() gives a list of author pages permalinks (site.com/author/john, site.com/author/jenny, etc). I want the same links using get_users() or get_userdata() functions instead. I need these ...
drake035's user avatar
  • 1,197
0 votes
0 answers
92 views

Add new user and user bio at same time

Note this is not referring to any type of author bio display but rather how it's entered via the Admin. As it stands now, the new user screen doesn't have any author bio field. It's only after you ...
Jesse's user avatar
  • 13
3 votes
1 answer
1k views

Completely hide user info

I'm wondering if there's a way to make 100% sure a user's info is not available to the public. Our theme is not currently using a profile page, but I did notice that there is a 'Posts by author' page ...
Daniel's user avatar
  • 145
1 vote
1 answer
5k views

the_author_meta('user_url', $author->ID) not working properly. how can I solve this?

I have 2 authors and an admin on my blog. I am using the following code in my contributors.php function contributors() { global $wpdb; $authors = $wpdb->get_results("SELECT ID, ...
Riffaz Starr's user avatar
2 votes
1 answer
4k views

Where is the information about the authors for articles stored?

I have recently been appointed to maintain a Wordpress powered news site. I don't have much experience with wordpress and have been teaching myself as I go. The site I am maintaining was recently ...
user44754's user avatar
  • 231
0 votes
2 answers
139 views

show count author post today

i want show user count post today or yesterday post in wordpress. example: xxxx = published 2 Posts yyyy = published 40 Posts please help me.
david's user avatar
  • 1
0 votes
3 answers
7k views

How can I set wp_dropdown_users so that it shows only authors?

I want to list in a drop-down box all users who have role "author" How can i do it? Thank you
p.a.'s user avatar
  • 581
2 votes
1 answer
909 views

Limit number of posts a user can make per minute?

So I found the solution to limiting a number of posts a user can make per day but not per minute. Here's an excerpt from the code I found on http://wordpress.org/support/topic/limit-the-number-of-...
user1114968's user avatar
0 votes
1 answer
25 views

Personalized Author Area

I have most of a site together that is set up to allow people to register as authors and post stories. I had originally suggested we use a form and have the client create the post, since he also ...
ERM's user avatar
  • 287
0 votes
1 answer
33 views

Link to Authors blog posts

I am trying to create a link in my template that allows the user to see there own blog posts the code that i am using is <li><a href="?author=<?php the_author_ID(); ?>">test</a>...
Connor Cushion Mulhall's user avatar
0 votes
1 answer
1k views

get_comment_author_link not working properly

I have this snippet: <span><a href="<?php bloginfo('url'); ?>/writer/<?php echo get_comment_author_link(); ?>"><?php echo get_comment_author_link(); ?></a></...
user1770896's user avatar
0 votes
1 answer
280 views

Cannot select certain authors for posts after import

I just consolidated a couple standalone WordPress installs into one Multi-site install. After importing posts into each site accordingly, I am unable to edit a post or page, and select a different ...
Michael Ecklund's user avatar
3 votes
2 answers
3k views

Order the users by the date of their latest post

I use the following code for getting the authors of in my multi-author blog and order them by their post count. I want to order them by the date of their last post $authors = get_users('role=author&...
Midhun's user avatar
  • 33
0 votes
2 answers
1k views

Getting list of top 10 users and sort on last name

I would like to display a list of the top 10 authors based on the amount of posts that they have, and then sort them on last name. To my knowledge, this is not trivial since the last name of a user ...
Squrler's user avatar
  • 395
0 votes
1 answer
442 views

Select From wpdb - Author/User Directory page

I am working on a wordpress site where I have created a directory page(authors.php) that lists all users and certain author meta. It works fine however I am trying to figure out how to only show ...
730wavy's user avatar
  • 193
4 votes
4 answers
22k views

Display edit link if post author is current user

I am creating an author.php page and listing all the posts from an author. Although admins can see the posts' edit links i want to echo the link if logged in user is the current user for example if ...
Emre Caglar's user avatar
4 votes
2 answers
13k views

Force display name as full name

Is there a way I can force all users display names to be Firstname Lastname or alternatively change this to be the default?
Svish's user avatar
  • 229
1 vote
1 answer
637 views

Show different badge based upon the user role

Problem I have authors page and I need to display a different badge for Authors and Subscribers. Authors on the site have certain abilities that differ from Subscribers and I would like to display a ...
jimilesku's user avatar
  • 263
1 vote
2 answers
5k views

Is there any function available to echo current user's profile url?

As of now i'm using this code to echo user's profile url. <?php echo esc_url( home_url( '/' ) ); ?>user/<?php echo $current_user->user_login ?>"><?php echo $current_user->...
PrivateUser's user avatar
  • 3,469
0 votes
2 answers
4k views

Authors Page : A page of authors

I'm looking for a way to create a parent authors page and then use the author.php for the individual author pages. I've been out of the loop (no pun) for a couple months and am wondering the best way ...
hoss9009's user avatar
1 vote
1 answer
87 views

Multiple Unique Author Profiles

I'd like to create multiple user profiles are unique, without just using a "if/then/else" php statement on the author.php template? All I need is the ability to create two different types of profiles.
hoss9009's user avatar
24 votes
3 answers
19k views

How to check if a user (not current user) is logged in?

I need to display the online status (online/offline) for each author page (custom author page template). is_user_logged_in() only applies to the current user and I can't find a relevant approach ...
Dominor Novus's user avatar
0 votes
2 answers
14k views

Get avatar of the logged-in user in Wordpress

How can I get a user avatar to display in the header of my WordPress site? I've tried: <a href="<?php echo get_author_posts_url($post->post_author); ?>" title="<?php the_author_meta( '...
jimilesku's user avatar
  • 263
4 votes
2 answers
6k views

Wordpress: How to get the current logged in author page URL?

Is there a way to display, via a PHP function, the author posts link (myblog.com/author/jason) of the current logged in user ? In fact, I would like to display, for every logged in user, a "My ...
user avatar