'Show an author their Drafts on the frontend in WordPress?
I am working on a site where I will have multiple contributors and authors, and I have a front end studio set up for them to create posts and publish them, but the issue that I am facing is that I can't get their drafts to show up in their posts list on the front end editing studio. Only if I make them administrators on the side will they be able to do it, but I want to keep them in their current Contributor role. Does anyone know a code snippet or code that I could enter in some page via FTP to pull this off? Been struggling with this for several days.
Making them admins is the only thing that worked. Querying to pull drafts didn't work.
Using this query:
$query->set( 'post_status', [ 'publish', 'draft'] );
but it only works for admins on the front end not any other WP role.
Can someone help with this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
