Refers to accounts with the ability to login and participate in a WordPress site.

learn more… | top users | synonyms (1)

1
vote
1answer
2k views

Add User meta fields, which only admin can edit

is there a way to add custom user meta fields (like the one in the profile.php which contain specific user data), but only an admin (or an other user with enough capabilities) can change them? Maybe I'...
1
vote
1answer
626 views

How to migrate wordpress users from one blog to another

I have a client that has a single install outside of her network installation. I need to migrate the users with their passwords into the network installation. I've tried backupbuddy but it seems to ...
1
vote
1answer
368 views

Admins can't edit each other's posts

After I imported content from another wordpress site using the WXR export/import tools, my admins can't edit each other's posts. This is really aggravating because I can't figure out how to change ...
1
vote
2answers
1k views

$current_user var returns NULL

I am developing an wp plugin and I am trying to get the current user. If i return with an error print_r($current_user) returns the needed info. But the plugin is activated without an error it ...
1
vote
1answer
102 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 ...
1
vote
1answer
660 views

How to display only logged in user's post comments in comments area

I am making a custom Wordpress site where School students logged in and add their posts. I am giving them rights to use wp-admin panel with little customization and modification. QUESTION: "How can ...
0
votes
0answers
123 views

Getting invalid user ID error when creating a new user with wp_insert_user

I'm trying to insert users into wordpress from a foreign database and I've prepared my $userdata as foreach ($users_out as $key_u => $value_u) { $user_id = $value_u['writer_id']; $...
0
votes
1answer
244 views

Navigation link to specific user page

I asked this question and got a great reply - Associate Page with User - so I can now associate a post with a specific user as required. What I want to do is include in the main site navigation a ...
0
votes
2answers
346 views

Switch Theme Through Options Panel

Is it possible to allow users when logged in to switch the entire theme through a theme options panel? I don't want users to use the standard wordpress way, but instead just an option in their panel. ...
0
votes
1answer
136 views

Overview with latest edited posts and pages

I'm looking for an overview of all the latest user activities. But I don't want to see comments on this page, just the edits or creations of new posts or pages. Unfortunately I can't find such a ...
0
votes
1answer
96 views

How can I sort get_users() by any value (last_name, user defined fields and more)

I want to sort the result of get_users() by last name, first name, user defined fields or whatever. How can I achieve this while still using get_users()?
0
votes
1answer
54 views

delete_user_meta Delete one value out of array

The code I have is not working cause the value saved as array and I'm not sure how to fix this. // Remove favorite authors from current users DB function fav_author_remove_user(){ ...
0
votes
1answer
2k views

How to display multiple custom columns in the wp-admin users.php?

I'm using the manage_users_columns to display a custom field I create in the usermeta database called company. My code is as follows: function mysite_column_company( $defaults ) { $defaults['mysite-...
0
votes
3answers
3k views

How to keep track of user logins?

I have a client with a private Wordpress blog - that is to say, you need to log in to read it. We are using Counterize to keep track of visits to the site and to find the most popular pages. But now ...
0
votes
1answer
47 views

Check if user is online?

I simply want to show green circle after username if user is online and nothing if user is offline. I've found this 5 years old question but both of the ideas seems bad because I've been told than ...
0
votes
1answer
1k views

How can I get the last posts by user role?

I have a custom post type ("News"), and a custum user role ("Friends"). How can I get the last "News" written by "Friends" ?
0
votes
2answers
7k views

Custom user profile, registration, login page with theme

WordPress user profile page uses the administration interface, and its user registration / login page is not part of the theme. I would like to change it into the custom theme of my site customize ...
0
votes
1answer
68 views

Total number of authors with more than one post

<?php $users = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->users"); echo '(', count( get_users( array( 'role' => 'author' ) ) ); echo ')' ?> code by Jan Beck I need to know what ...
0
votes
2answers
1k views

What do spammers gain by signing up as a user?

The majority of new user signups I receive on my Wordpress blog look dodgy, with @someblog.com, @somearticle.com, or @gmail.com addresses. What do they gain by signing up as a new user?
0
votes
1answer
2k views

add 'file upload' field to user details

In the backend when a user goes to their detail page they can edit a few text fields. I want to add a custom field that allows the user to upload a file. I found something similar but its only to add ...
0
votes
1answer
186 views

Assigning a role to a specific custom post type (and ignoring other post types)

I have a new post type called "story" And a new role called 'Writer' (w/ a 'publish_story' capability) I want it so that, a Writer when logged in can edit Profile and only edit a custom post type - "...
-1
votes
3answers
1k views

Display link with current user's username in it in Custom Menu

I'd like to add a link to BuddyPress' My Favourite Topics in a Custom Menu. Is there a way to use the current logged in user's username in the link? I mean like the %category% in the permalinks.