All Questions
79 questions
0
votes
1
answer
97
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
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 ...
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?
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
2
answers
929
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
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
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
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
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
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
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
1
answer
570
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
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'...
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
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?
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)
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 ...
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
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 ...
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
34
views
Add new post only in assigned category
Is there any possibility or plugin, that alows me to add a user (example author role) who could add posts but only in one category?
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
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
74
views
Wordpress each user has each content for a page,how to do that?
I am a newer of PHP language,I have a project of user system,that need each user has each different content,I place the content to a page,when user login,open this page will display that content.To do ...
0
votes
1
answer
90
views
How to get all posts belongs to a user between a certain date
I am writing a plugin for my company so I need to get all posts belongs to a user between a certain date which is given by another user.
Then I want to count words for each post and finally add them ...
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
$...
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
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 ); ?>
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
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
1
answer
79
views
User rank in wordpress post
I saw awhile ago on a support Forum that you can show a authors rank on a post in wordpress but I can't seem to find the post again but instead of words I want it to show an image if anyone could ...
1
vote
1
answer
52
views
Restrict users post for himself
I am trying to build a system that lists users posts only (that I have managed to code) but also restricts users from seeing eachothers posts.
If user A has his post under: domain.com/category/postA ...
2
votes
2
answers
134
views
Get user's most published categories
I am working on listing all users similar to the Users page here on SE.
When listing each user, I want to add their 2 categories they have published most into. All categories are within Posts.
...
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 ...
0
votes
0
answers
72
views
Count how many posts a user has viewed
Seems this is quite a new question, as I found it nowhere.
I was wondering if it is possible to count how many posts a registered user has viewed (entered) on the frontend.
So basically when a user ...
0
votes
1
answer
196
views
Retrieve data from post meta meta_key having '_product_fq_image' while having author_id and post type is PRODUCT
How can we retrieve data from postmeta having '_product_fq_image' while having author_id and post type is PRODUCT
I have tried this
$lt_content_design= get_user_meta( $user_id, 'lt_content_design', ...
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
1
answer
40
views
User submitted post
I'm sure there are plugins to do this but I wanted to try and do it myself.
I have a form that contains a title and a content/message area.
I would like to add this form as a post when fill it in.
...
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 ...
0
votes
0
answers
205
views
Allow users to create their own page/s
I Create a network where any register user have a profile, from user profile i want enable user to create own page/s where he can post like Facebook. There is a way to do this with wordpress or i must ...
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' => '...
1
vote
1
answer
202
views
Users problem (multi-author plus multisite)
all. I am having a users-related problem on a multi-author site (actually two sites on a multi-site, both of which have the same users). Here are some details:
1) In the backend users' list, the ...
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/...