The users tag has no wiki summary.
9
votes
2answers
4k views
How To Add Custom Form Fields To The User Profile Page?
The user profile page has the following fields:
Username
First Name
Last Name
Nickname
Display name
Contact Info
E-mail
Website
AIM
Yahoo IM
Jabber / Google Talk
How can more fields be added to ...
0
votes
1answer
186 views
show User Registration Date in Wordpress
i want to show user registration date like Member since: 15,dec 2012.
I have a code
<?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> but it show ...
0
votes
1answer
74 views
Reapproval for edits and deletion after post is published
I regularly have guest authors who post one or more articles on a non specific schedule. So I provide them with permanent contributor accounts to avoid the hassle of making them accounts and deleting ...
5
votes
6answers
6k views
How to restrict dashboard access to Admins only?
How would we restrict access to the WP admin area to all users except admins?
The users on our site have their own profile pages which do all the functions they need.
So admin should be off limits to ...
0
votes
1answer
54 views
Followers for WordPress [duplicate]
I'm seeking a system for following (like used on Twitter.com) with the following parameters, or close to them, and I'm curious if anybody has a solution. I would like to avoid BuddyPress.
Basic PHP ...
0
votes
2answers
162 views
How to build a fool proof AdSense revenue sharing model?
I have 5 author levels in my WordPress site. Levels are calculated using points
- level 1
- level 2
- level 3
- level 4
- level 5
Authors getting impressions based on author levels like this.
...
3
votes
1answer
1k views
Multi-steps WordPress registration : in 4 steps how to?
I saw in several WordPress sites up on registration that the registration process is in 3 or 4 steps.
how can i implement such process to my theme? ie:
choose your role + fill in register ...
5
votes
1answer
53 views
Get the name of user who updated post
Does anyone know how to get the name of the user who last updated a post/page please? (Not the post author). I can see that it is visible in the post/page revisions but don't know how to access it.
...
1
vote
2answers
86 views
How to use WordPress for class notes?
I've been writing my C++ class' notes directly into my WordPress editor. My professor has tasked me with codifying the notes for future use. I'm working with a classmate on this project, but I need to ...
0
votes
1answer
405 views
Is there a way to rate users instead of posts?
I would like to enable ratings for individual authors on my site instead of posts, so that users can rate each other. I just want a star rating system with some text to form some sort of review.
I ...
1
vote
0answers
84 views
How to add a filter based on custom field to admin user list [duplicate]
I have added a column to the user list using two wordpress hooks: manage_users_columns and manage_users_custom_column. That's working fine. Now I would like to filter the user list based on a custom ...
1
vote
1answer
126 views
How to delete all post and attachments of a user when I delete it?
When I delete a user, WordPress can just delete the post or page of this user,
not his custom post and his attachments.
An idea for a special hook?
add_action( 'delete_user', 'my_delete_user');
...
1
vote
1answer
85 views
How to read individual user's directory and display content to that specific user?
I am creating a photo plugin for users to view their photos. The plugin works in a way that when I add a new user, a directory is created in the uploads folder inside wp-content with the user's ...
0
votes
2answers
21 views
how can I query all wordpress users of a blog
How can I loop through all Wordpress users in a blog, and sort them in ascending order by their usernames?
1
vote
1answer
38 views
Create a shortcode that creates a form for users to edit their information
I want to make it so that logged in users can edit their information on a page in my site, so that I can avoid having them go to the admin side all together.
I was thinking that I could create a ...
2
votes
1answer
996 views
Force users to complete their profile after they register? How to
I am making a custom (quick) registration page in my wordpress site, to let users to register quickly by just filling username-email and choose their password.
I have tpl-edit-profile.php,
what ...
6
votes
2answers
114 views
alphabetically order role drop-down selection in dashboard
The site I'm working on will have a very large number of unique user roles via a members plugin. Because of that, I'd like to have the Role drop-down selection on the Add New User page to display ...
0
votes
2answers
25 views
How to create functions that affect only a specific user
I am customizing the WP admin area and want the functions I am using to only affect a specific user. Any Ideas on how to write this?
3
votes
1answer
121 views
Show Biographical Info while creating new user
Is it possible to show the Biographical Info textfield while creating a new user?
I know it's possible to add user bio by editing a user AFTER it has been created. But I would like to do this while ...
3
votes
3answers
612 views
Track logged in users' visits
Is there a way to track logged in user activity? I'd like to see who logged in to the site each day and maybe see a specific persons login history.
Currently I have no idea which of the registered ...
0
votes
1answer
119 views
0
votes
1answer
219 views
How to Set an Individual Homepage for Each User?
I would like to give my users the ability to customize the homepage of the site. For example, if somebody is not logged in only the default categories appear.
Once someone creates an account and ...
0
votes
3answers
132 views
Remove the deleted user comment
Problem
I have a user based site, so when user deletes his profile somehow his/her comments stay visible.
There is no name and blank avatar with the comment. Is there any way to delete the comments ...
0
votes
2answers
86 views
What is the proper way to get logged in user id in a plugin?
I need to get logged in user id inside my plugin.
Is this the proper way?
$root = dirname(dirname(dirname(dirname(__FILE__))));
if (file_exists($root.'/wp-load.php')) {
...
0
votes
0answers
91 views
Retrieving posts connected to a user [closed]
Using the Post-to-Posts plugin, I’m trying to display all the posts connected to the user on the buddypress member profile. The custom post-type is named, “badges.”
The loop shows all of the ...
0
votes
1answer
68 views
get random users each time based on the meta key
I have many users on my website, out of some has status "elite". I am saving this status in meta key/value for each user ('meta_key' => 'elite_member', 'meta_value' => '1').
I want to display ...
3
votes
2answers
967 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 ...
2
votes
2answers
139 views
Custom style on profile options page
is there any way to style the profile page on wordpress ? I will like to add something like:
Start of the page just below the <h2> tag
<div id="normal-sortables" class="meta-box-sortables ...
0
votes
1answer
156 views
Redirect based on log-in status per JavaScript
I want to check if a user is logged in. If he is, I want to redirect him to page A, and if he isn’t to page B.
The redirect should happen per JavaScript after a button has been clicked – so I need ...
1
vote
2answers
85 views
Is it possible to get the currently logged in admin's IP?
Given a wordpress (3.4.x) install that only has 1 admin, how would I grab, from within a plugin, the IP of the currently logged in admin, if there is an admin logged in?
In other words: I need to ...
0
votes
2answers
106 views
Subscribe to author?
Basically, I want to follow the author by other WordPress users. Whenever an author posts new post subscribed users need to get notification by email.
If it's not already there, I can create a plugin ...
4
votes
4answers
328 views
Replacing the Wordpress password validation
I have a custom application with thousands of users who already have a password stored. I would like to set up a self hosted wordpress site to accompany that application and to use the usernames and ...
4
votes
2answers
7k views
How to check if a user is in a specific role?
I have a pretty specific requirement to show different text in a field label on the user profile page based on the current user's role. I can't seem to figure out how to check whether the current use ...
1
vote
2answers
67 views
Remove the deleted users avatar from list
Problem
Hi everyone, I have a bit of a problem. I have a function that outputs the avatars of users that follow me . It works great, but if the user is deleted the avatars remain visible as a blank ...
-1
votes
1answer
64 views
Protect page with user-credentials? (Not just a password) [closed]
I need a specific user role to be able to login through a form on a page, and then display the page content. They shouldn't login with the wp-admin page. I just want a normal <form> on the ...
5
votes
1answer
160 views
User-Specific Timezones? Hack? Plugin?
Is there any way, whether it be a hack, a plugin, etc., to give users their own timezone? I am using a purchased SMS plugin. Users (my clients) login and are able to send out text messages when they ...
0
votes
1answer
161 views
Control Users listed in Users List on dashboard
I have a user role "author" with a modified capability to add users and give them the role of subscriber.
I'm trying to edit the Users List on the dashboard to display only the subscribers created ...
0
votes
1answer
597 views
How do I let contributors edit their posts after being approved once?
As above
Background info
Main problem: users pay to post an ad on the website
Solution: they sign up as contributors and I publish their posts once the payment is received, after that they can make ...
0
votes
2answers
407 views
How to get the user description with get_users?
I'm using this piece of code to list users and their information. The problem I'm having is that the description isn't showing. Obviously it's because the description lays under "user_meta" and not ...
2
votes
2answers
250 views
Creating a Front-end based User Search
I am working on a membership site which requires a front-end user search. I have been searching for an answer like a mad man, and I could really use some help! While there are several plugins that ...
0
votes
1answer
294 views
List top 5 authors with most posts
How are you?
I have a blog which have 20 authors. I want to write code to show the 5 author who have more posts.
like this:
Adam (10 Posts)
Khal (8 Posts)
Yous (5 Posts)
Moha (3 Posts)
Yousef (1 ...
0
votes
1answer
187 views
How to restrict specific post types from being read or added by specific user roles (eg. author)?
I'm not very clear how to restrict admin area post types access to specific user roles.
In my case, I have some post type such as "suppliers" which I do not want to show to "authors".
By default WP ...
1
vote
0answers
173 views
Wp_User_Query not sorting by meta key
I'm trying to list users sorted by a meta value. I store a score for each user in their user meta which is just a number but the loop isn't sorting. I include the score in the loop so that I can see ...
0
votes
1answer
90 views
Need to exclude users with no posts from my contributors page
I have a contributors page on my blog that I have recently started and using some code online this is working pretty well.
HOWEVER
I would love it to do two extra things:
1) Only list members who ...
0
votes
1answer
129 views
Using my own user table
Quite a broad question but I was wondering if it's possible to remove user management from WordPress and let it be handled by a remote database?
I have an existing user table with everything I need ...
0
votes
2answers
1k views
Create password automatically for new users?
Is it possible to automatically create a password for a new user?
Ideally, I'm looking for a plugin that, if the password is not given on user creation, would generate one and optionally email it to ...
1
vote
0answers
88 views
Count user posts by type and date
I use the following code to count user posts by specific post type:
function count_user_posts_by_type( $userid, $post_type ) {
global $wpdb;
$where = get_posts_by_author_sql( $post_type, ...
2
votes
1answer
43 views
User fields that can be edited by administrator?
How can I add custom user fields for a user profile that an administrator can edit? I want the user to be able to see the value of the field on their profile, but I don't want them to edit it. How can ...
1
vote
3answers
895 views
How to let contributors to create a new revision(draft) editing their published posts
I'm using a custom post type to let contributors have a personal page on the site.
Any time a user registers to my site a script creates a custom type post that has the registering user as author.
To ...
1
vote
1answer
184 views
Allowing logged in users to comment without moderation across a multisite installation
I currently do web admin for an internet community based on BuddyPress and Multi Site, and use the Comment author must have a previously approved comment setting to make it easier for users to comment ...
