Custom Button to only Change Post Status
-
I am creating a content management dashboard for a client with multiple CPTs.
The admin pages are built using Elementor Pro’s post widget with two alternating custom skin “Loop” templates. A custom query id allows the Loops to access “Draft” and “Pending” posts.
Each post row contains:
- Post title
- A short code to flag the draft and pending posts
- A modal edit form.
- A delete button.
- Three buttons to update the post status.
Display conditions are used to show/hide the buttons based on the row’s current post status.
Screenshot 1. Click Here
While trying to get this to work, I’ve:
- Set the buttons to use the correct field group for the post.
- Hid all of the fields.
- Set the form to modal with only a confirmation message field.
- Set the Post > Post Status for each button to the desired status.
- Set Permissions are set to “Logged on Users”
- Selected only one role “Administrator”.
- Created a custom ACF form and use the form’s short code to add the button
Problem is that the buttons do not update the post.
Am I missing something or is the plugin not programmed to update draft / pending posts?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Button to only Change Post Status’ is closed to new replies.