September 1, 2013 at 1:46 pm 7721
|nonameolsson||I have a own query to list my custom post types. I'm trying to imitate the Dashboard, but with my own custom settings.
Here is the code: http://pastebin.com/Q3DXiBHT
I've copied some from the plugin code. The problem I have is the edit and delete link. I want them to show up only if the user role of the current user is "fulltime", and the post status is not "publish". And it works!
This is the code for that part:|
But the problem is when I press the delete link. The alert pops up asking if I'm sure that I want to delete that post. When I press yes, nothing more happens. Why can't I use the WPUF delete link function in my own query?
September 1, 2013 at 1:59 pm 7722
To work the delete link properly, the dashboard need to have the plugin dashboard shortcode. Otherwise it won’t work.
As you are not using the shortcode here, you’ve to implement a delete functionality by yourself. Check the plugins delete function to get the idea.
September 2, 2013 at 1:55 pm 7745
Ok, thank you for the explanation! This seems to be a bit difficult to me. Maybe I will try another solution.