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

Questions tagged [users]

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

0
votes
0answers
11 views

Looking for split screen debate forum Wordpress plug-in [on hold]

I'm trying to find a debate forum Wordpress plug-in that'd function much like the example image below. Any suggestions? The difficulty has been finding something that's split-screen (left & ...
0
votes
2answers
9 views

User meta query results in PHP notice: only variables should be passed by reference

I am using a URL rewrite to put the user's display name in the URL to display a user profile. This part all works fine and the proper value is passed through the query_vars and I can get the correct ...
0
votes
0answers
19 views

Wordpress user ID prefix

Anyone know of a way to add a prefix to the WordPress user ID when the user registers via WooCommerce checkout? This new user ID format would need to be stored in the WP database in the default user ...
-1
votes
0answers
14 views

Get all custom post types associated with a user

I have created a custom post type called "Groups" where I can add a list of users to it. I am trying to write an API that will return all the groups associated with a particular user. I am storing an ...
0
votes
1answer
25 views

restrict admin panel sections to users

I have found out how to disable wordpress admin menu items from users other than administratos. What I would like to achieve now is every user can access only his user page (only "Your profile") and ...
0
votes
0answers
12 views

Displaying Images from Gallery by user

I'm very new to Wordpress and websites and I'm building a site which allows users of a specific role to login and upload photos to their profile page and then those photos be displayed on another page ...
0
votes
1answer
16 views

How would I be able to use a font awesome icon as a user's avatar?

Would it be possible to use/allocate a font awesome icon as a user's avatar?
0
votes
0answers
15 views

Restrict specific user to manages posts in specific category

I explain this with an example. In my blog I have 2 users: John Paul that write posts. Posts have 2 categories (to be precise, it's a custom taxonomy): Cats Dogs John manages the Cats section of ...
0
votes
0answers
14 views

Wordpress: Issue with filtering users using date range

I'm trying to add a date range filter for wordpress admin users table to filter users that have posted ads between the selected range. I've managed to add the date range inputs. I have 2 issues with ...
0
votes
0answers
10 views

Open source my blog posts

Can anyone know about a plugin, or could think about a way to open source my blog posts? I would like to enable users to suggest their changes to my post.
0
votes
1answer
29 views

Cross origin ajax request always returns 0 when calling get_current_user_id();

I currently work on localhost and when I want to test ajax requests to my web server, the function get_current_user_id() always returns 0. When I make the ajax request from my website however, it ...
2
votes
1answer
34 views

New user notification doesn't include activation link

When adding new users through the Dashboard, I've noticed that the notification email sent to a user when then have been added to Wordpress doesn't work correctly. Included in the email is the ...
0
votes
0answers
13 views

PHP XMLRPC for WordPress — Adding data using User Role - Auther

Role : Administrator : when I upload data through PHP XMLRPC for WordPress it has successfully post. Role : Author : When I use the Author login credentials then it has not uploaded. check the below ...
0
votes
0answers
12 views

block access to wordpress users to the folder that contains an external web application

First, sorry for my english. I am developing a web application that works on wordpress. I have a folder called GSC, and inside it is my application. The problem I have, is when I have to control ...
0
votes
1answer
27 views

Add WordPress users to a custom post type

I have created a custom post type called Groups. I would like to provide an option to add Users to these groups in the Group edit page. Any help would be appreciated thank you. P.S: I thought of ...
0
votes
0answers
7 views

Modify the user data stdObject and add extra items to it?

Is it possible to add another item to this data object without using user_meta? I would like to just add one more item to this standard class object. The item I want to add is [user_tel] below the [...
0
votes
1answer
16 views

How to display particular categorie's post which associated to specific user?

How to display particular categorie's post which associated to specific user? http://tugsemegtei.mn/category/fish/ Above link displays all the posts under fish category, but how can I display only ...
1
vote
0answers
25 views

Adding custom class to get_avatar() image doesn't work

Instead of outputting <img alt="" src="#" srcset="#" class="avatar avatar-60 photo" height="60" width="60"> I want to add custom class which looks like <img alt="" src="#" srcset="#" class=...
0
votes
1answer
17 views

How to query 5 users in random who have published more than 10 posts

I want to display 5 users who have published more than 10 posts, when the page loaded again, it should show another 5 users or mixed with new users with more than 10 posts. How do I achieve this? ...
0
votes
1answer
28 views

How to query users by post count no less than 10

I want to display 5 users by random who have published more than 10 posts but is not working. What I've done so far is $args = array( 'number' => 5 , 'meta_key' => 'post_count',...
0
votes
1answer
30 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
0answers
12 views

How to create account-switching function for Wordpress front-end users

I am working on a Wordpress website where we have built a web-app of sorts that gives users a profile and helps them connect with others in their specific industry. Users can sign up for a profile as ...
0
votes
1answer
21 views

How to get the count

How to get the count of the WP_User_Query result while I use $query = new WP_User_Query( $args ); echo count($query); It returns 1 when there is no user. But I need 0 in that case. How can I get ...
0
votes
0answers
13 views

Making media library files private

Is there a way to make the media library private. For instance, if someone were to type http://websitename.com/test-file/ That person would have access to a private file. I want to be able to set user ...
0
votes
1answer
15 views

How to get current post user id

I have some posts, each post have different authors(users). I save each author image avatar in user_meta table. Now i want show each author avatar in self posts. i get user_id with ...
0
votes
3answers
41 views

How to count total words for posts published by one author?

How can I get a total word count of one author's posts? Thanks. To be more clear, I wanna show the total word count in the author archive page, preferably using code.
0
votes
0answers
6 views

wordpress search function works for admins but not users

I keep getting the error "Unauthorized. You may remove the customize_messenger_channel param to preview as frontend." The pages I'm searching for are published. anyexpat.com is the site with the ...
0
votes
0answers
15 views

Intercept password prior to wp_update_user committing and hashing?

I'm using a plugin that uses wp_update_user instead of password_reset and I need to use the password prior to hashing to sync the change to a secondary authentication system. Is there any way to do ...
1
vote
1answer
35 views

How to change user starting role in WordPress MultiSite?

I am using WordPress MultiSite. Where can I change user starting role? It does not show under Settings > General > New User Default Role.
0
votes
1answer
16 views

Didn't get array of users like in delete action WPList table in users tab

I am adding a bulk action assign just like delete. add_filter( 'bulk_actions-users', array( $this, 'add_bulk_action' ) ); /** * Add Bulk Assign Action. * @param array $actions Current ...
0
votes
1answer
33 views

Show Wordpress users in grid with image and name

I'm looking for a way to display Wordpress users on a page in a grid. Ideally with an image and a name. It's for a face book page (not Zuckerberg's blue version) on a company's intranet. In my ...
0
votes
0answers
8 views

Wordpressl user authorization from ionic 3

I am trying to access Wordpress (CMS) and Civicrm (CRM) from Ionic 3 Mobile application - using same login page So, I am trying to login to Wordpress- Using BaseUrl, username and Password - Is this ...
0
votes
1answer
23 views

Is there any action /filter hook I can use to disable login for some user role?

I want to block user role called "pending" loging to the site. (pending is a custom user rolled created by me). Is there any action/filter to block all users who are in "pendin" user role?
0
votes
1answer
25 views

Create relationships between users or user roles

I have a site where doctors and patients are registered. It provides services like where patients (role-patient) are registered themselves and after my support person (role-support) assign that ...
1
vote
0answers
23 views

WP_User_Query - searching multiple fields

I have a search engine where I can search for users on the front end. Profiles have mulitple custom fields. I'm just searching first and last name in this example. The problem is I can search for a ...
0
votes
0answers
24 views

Sort Custom Column in Admin Users Panel

I have added a new column in admin Users Panel that shows the last date when an user has submitted a post. Everything is working well but now I just need to make it get sortable and I am a bit stuck ...
0
votes
1answer
23 views

Possible to have duplicate usernames on different two multisites

I have a multisite set up with two sites setup: example.com/site01 example.com/site02 With both sites, they are using the same custom theme which generates a default list of users (publisher01, ...
0
votes
1answer
31 views

How can I delete a user from entire multisite nework

I'm making a front-end user delete button but it only removes the user from the current installation and I need to remove them from the entire multisite network so they are able to sign up again with ...
0
votes
1answer
15 views

Use WP user status (logged_in) to manage access to independent application

I have WP installed in the root of my website. In the same directory there’s a completely independent application. What I want to do is the following: when the user accesses the page containing the ...
0
votes
0answers
31 views

Toolset / User Role Editor: Custom Role unable to assign custom post type to taxonomy

I created custom type post with taxonomies using toolset and create custom roles for my event manager to handle the website using User Role Editor. I managed to create capabilities via function.php ...
0
votes
1answer
17 views

Disabling user capability to edit_posts or delete_posts in the front-end

I've created a post edit form in front-end of the site, this form is accessible on the front-end ONLY if the user is logged in. Now, for some reason, upon a certain condition is met, I want to DISABLE ...
0
votes
0answers
19 views

Is there a way to let users download images from a gallery?

What is the best way to let users download images from a gallery? I tried using the NextGEN Gallery plugin with the download addon plugin, but it looks horrible on mobile devices. Thanks again, ...
0
votes
1answer
51 views

Delete user from multisite when removed from subsite

I am using the multisite setup of wordpress. My subsites are managed my administrators of other organisations. Problem: When a user is deleted on a subsite by the administrator, its records still ...
0
votes
1answer
16 views

Redirect /member/ to /member/user

Is it possible if an user is loggued to redirect /member/ to /member/user ? (User is the display_name) If yes, how can I do this ? Thank you ! :) thanks to Jack, I tried to search on google "Wp-...
1
vote
3answers
73 views

Redirect users based on custom field

I'm a novice at Wordpress and i'm pretty sure what i'm looking for is really easy. I have an issue with a function that doesn't work : function user_homepage() { if ( is_user_logged_in() ) { ...
0
votes
1answer
33 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
0answers
18 views

Access the external mySQL database to create, update and delete users though forms on WordPress pages

I have looked around for a WordPress Plugin to manage a divergent group of users. There are three types of users and each of them has a different registration requirement. By using the “standard” ...
0
votes
0answers
8 views

Get online users by their role

I have a couple of members having different custom roles in my site. For Example, when anyone registers, they register under a group and the group name is append with their display_name in wp_users ...
0
votes
1answer
34 views

Change page password every day (predictable password ;) )

I've got a WP page containing a survey. The survey will be accessed by different people everyday (for simplicity say everyday for the whole year). I would like to password protect it and the password ...
0
votes
0answers
16 views

Add another role to a user when they click a button?

On my site, there are roles "user, authors, etc.". Default role for user is "User" which I want to keep it for all users. How to add another role to a user when they click a button? I tried with my ...