All Questions
79 questions
0
votes
1
answer
98
views
How to allow Contributors to edit their own posts, whilst still needing to be reviewed by an admin?
Im using the User Role Editor plugin to try to acheive this, but I've also tried PublishPress Capabilities and had the exact same problem.
I'd like it so that my contributor users work like so:
Their ...
0
votes
0
answers
46
views
Allow users to edit post without logging in
I'm working on a site where non-logged in users are able to submit their posts. It's easy to do on front end, however, when the posts need to be edited, it's a completely different story.
So, is there ...
0
votes
1
answer
77
views
Does Wordpress Super User or Administrators can create and edit post and media on behalf of a user
For my project I need to administrate user post and media without access to it personal account.
So I must be able to create and edit a post (by is user name) before or after it has been created on ...
-4
votes
1
answer
353
views
Undefined Function Fatal Error with Shortcode [closed]
I asked AI ChatGPT:
Can you develop a wordpress shortcode to create a list of users of a certain role and for each one show if they commented on a certain post (counting how many comments they left)? ...
0
votes
3
answers
3k
views
Assign a Post to a User
1 - I have a CPT, with 10 posts.
2 - I have 10 users
Q : How can i assign a single post from my CPT, to an unique user ?
-> Each user must see only it's assigned post
(Each post will be assigned by ...
0
votes
1
answer
1k
views
Display a list of users who have viewed the post you are viewing
How would I display a list of users who have viewed the post you are viewing?
0
votes
0
answers
56
views
How to limit post (Exception pages) for current user in each role in front end?
Thank you for reading this question
I need an option or code for each user in each role to see only their posts at the front end, and other users' posts to be completely hidden from them, even in ...
8
votes
4
answers
13k
views
Find out who deleted a page or post?
Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense.
The revisions, when I restored ...
3
votes
2
answers
4k
views
Force "Submit to review" when a post is updated
I think that everything is in the title. I would like to find a way to change the status of a post to "pending" when the post is updated when the user is an "author". I already tried with differents ...
1
vote
1
answer
488
views
count the total number of comments the user has received for his published posts
I want to count the total number of comments the user has received for his published posts.
for example show:
total comments of your all posts : 47
Is there a way to do this?
Can you help me?
10
votes
4
answers
7k
views
Update post counts (published, draft, unattached) in admin interface
I am working on a multi-user WordPress setup and have made it so a particular type of user can only see and interact with posts, images, pages etc that they have authored. The code to make this happen ...
0
votes
2
answers
930
views
Query within a foreach within a query (queryception)
I'm achieving this list in a really roundabout way at the moment and I feel like I should be able to do it with a foreach instead of separate queries for each "House" (House is a CPT and is ...
0
votes
1
answer
1k
views
Get current user array with post string
I need to get 10 current user fields and pass the field values to a post string. The post string is expecting certain label names for each value.
Example - post string expects 'firstname' => '...
8
votes
3
answers
7k
views
How to Display a List of Users Who Have Made at Least 1 Post?
What I would like to do is have a list of users who have contributed at least one post.
I need to show the following:
[User photo] | [User Name] | [User post count]
e.g.
[photo] Joe Bloggs(8)
I ...
4
votes
1
answer
2k
views
disable password protected page for logged users
Is it possible to add hooks on function.php for disable password protected page for back-end users (logged users)?
I use beaver builder and when i modify page or post I need always to put the ...
1
vote
0
answers
49
views
Hiding posts by other users and non-logged in
I've been looking for a plugin that works like a private journal and had no luck. The closest I found so far was this guide from buddyforms. In terms of functionality, this is pretty close to what I ...
0
votes
0
answers
1k
views
Allow users to post their videos to my wordpress website?
I want to allow users to post their suggested videos on my website through url and file upload options. i went through the user submitted forms plugin but in that there is only option for image upload ...
4
votes
1
answer
3k
views
disable column on post and user list
I'm looking for the way to disable user column (posts and role) from users list. like you see in the picture
I'm also search how to disable column author on page list (in red on the picture)
0
votes
1
answer
300
views
Check if current user has a post and that post has any term/s from a specific custom taxonomy outside the loop
I'm looking for a way to check if (whilst outside the loop) the current user..
1. is logged in
2. has a post published
3. their post has any term/terms from a custom taxonomy
I have this so far...
&...
0
votes
1
answer
201
views
How can get the last post date of the user?
I want to get the last post date was written by the user and here's the code that I have made but it's not working:
function get_user_last_post_date( $user_id ) {
$args = array(
'...
1
vote
0
answers
757
views
WordPress Delete Users from backend doesn't work
When I delete user & that user content from backend, user was deleted successfully but wordpress doesn't delete that user posts & comments even I select "Delete all content" radio button. Does ...
1
vote
0
answers
83
views
How to verify wp user password by sql query in wp? [closed]
I want to verify the user password without function only by the SQL query.
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 ...
2
votes
2
answers
3k
views
Query All users that has post
I have this query so far :
$user_args = array(
'role' => 'frontend_vendor',
'orderby' => 'display_name',
'order' => 'ASC',
...
0
votes
1
answer
306
views
create front-end users post list by specific category
I am trying to create a post list that will show current users posts by specific category and show the post id inside the title. So, I wrote the code below, but it isn't working work. Any suggestions ...
1
vote
0
answers
568
views
Encountering "Wrong nonce. Action prohibitied." when trying to alter User Role and unable to Post via WP Admin
The plugin in question that I believe is displaying this message is the User Role Editor, although I do not believe it is causing the issue as users who should have permissions to make posts on the ...
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 ...
0
votes
1
answer
572
views
Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
I have Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover the lost content and images back
1
vote
1
answer
962
views
How to allow logged in users to post anonymously
I've been searching and searching for a while now to see if there's a way to allow people who are logged into my site to make a post as "anonymous" or as their screen name, an ideal additional option ...
0
votes
1
answer
704
views
Assign published posts to another user automatically
Usually, I write posts as admin, as this is more comfortable from the blog administration point of view. But I want the posts to be assigned automatically to another existing user with editor ...
0
votes
2
answers
197
views
Gather posts into a cart/lightbox and share with another user
Ok I've almost completed a Wordpress site that is a multi-user Image Library. This is a private site, where users must be logged-in to view it.
The average user cannot get to the backend (wp-admin) ...
0
votes
1
answer
1k
views
Add field to user meta table in database when link is clicked
I am working on function that enables registered users on my site to bookmark posts. I have searched for plugins but none seemed to do the job properly.
I have a page where users can see their info ...
1
vote
3
answers
80
views
Is there any way to allow users to access content before it's published?
I have a blog and I make posts daily, and I would like for users to be able to access posts one day before they are published. How can I do that?
0
votes
1
answer
38
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 ...
0
votes
0
answers
29
views
Is there a way to save different data when USER interacts with the same POST?
I would like a kind of relationship database without create database because I’m not very confident with it.
So I think about an alternative using Wordpress default features like posts, categories ...
2
votes
2
answers
766
views
Get how many days since last post of the current user
How do I get how long since current user's last published post? For example:
It has been <?php echo $days_since_last_post; ?> days since your last post
I need to use that number in a variable ...
1
vote
1
answer
154
views
UberMenu list current user's posts as menu items
I'm attempting to turn users' posts into menu items, without luck.
Here's what I have so far, but not working. I would like to use the Advanced custom content by adding a shortcode.
add_shortcode( '...
0
votes
1
answer
1k
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 - "...
0
votes
1
answer
819
views
Hide comments and posts posted by other user
I've created a user with role Contributor, when i logged in as Contributor all the posts and comments are listed in the dashboard. How to disable this? I just want to see the post made by me/...
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-...
3
votes
2
answers
3k
views
Hide comments awaiting moderation from user who submitted the comments
This is a strange one. I host a website that is primarily for children. All posts are moderated. Users are required to enter a user name and location (State), but are not required to be registered ...
0
votes
1
answer
266
views
Show number of posts by logged in user
How to display the number of posts written by the logged in user.
Here is what i got from the codex so far
<?php echo 'Number of posts published by user: ' . count_user_posts( 5 ); ?>
0
votes
1
answer
276
views
The post order is different for logged-in and non-logged-in users? [closed]
I noticed that for some reason on my site, the post order changes depending on whether a user is logged in or not. When I am logged in as the admin, the posts display is chronological order. But when ...
1
vote
2
answers
46
views
How can i delay reading posing in 3days for not logined user?
if( ! is_user_logged_in() && ( in_category( 'test2' ) || in_category( 'test1' ) ) && ( current_time( 'Y-m-d' ) <= get_the_date( 'Y-m-d', strtotime('+3 days') ) ) ){
echo 'sorry'...
2
votes
4
answers
4k
views
Allow anonymous users to post to my site for moderation
I'm in need of the ability to allow anyone (they don't have to login) to fill out a form with email and a textarea and submit it to my site. This form would be treated as a post and appear somewhere ...
5
votes
1
answer
2k
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 ...
2
votes
2
answers
3k
views
wp_insert_post let users post to without login...broke
this question has been answered on stackoverflow.
here is a link https://stackoverflow.com/questions/4321914/wp-insert-post-with-a-form/4321975#4321975
i'm trying to let users post to my site by ...
2
votes
2
answers
798
views
How do I allow users to follow a post and then allow admins to email all users who have followed that post?
I'm looking to build out the following functionality, but I'm having trouble finding any help on it:
user follows a post > user's email is pulled into an admin page and associated with said post > ...
0
votes
1
answer
78
views
Compare date of user's last posts
I want to compare the date of a user's last two posts. I'm new to WordPress developing. I have written this code but I'm not sure if it's correct. Please help me in correcting it:
$ID ...
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
$...