![]() |
wordpress question: delete post tag for inclusion in themes?
Is there a way I can add a "delete post" right into the theme for when I'm logged in as an admin? So I can edit or delete on the fly while browsing my site? Just a quicklink to jump me right on to the edit screen for that post.
|
|
|
Quote:
|
Quote:
|
checked it out, and added it to my site, thanks guys. would be really slick if i could add a delete post link right on the page to nuke posts as i flip by them, but the edit link works
|
Quote:
Code:
function wp_delete_post_link($link = 'Delete This', $before = '', $after = '') Code:
<?php wp_delete_post_link('Delete This', '<p>', '</p>');?> |
bump for angry jew
|
still need this?
|
I don't know if he does, but I can use it. Thanks, Fris.
|
you could probably add a bit of ajax, so it reloads the page after delete.
theirs also a function in 2.9+ wp_delete_post() which requires the postid Code:
global $post; |
checking this option out now, been working with a shitload of posts every day in wordpress. on the fly deletions should be great. thanks again fris.
|
works great, i really need to learn how to work with the functions more
|
All times are GMT -7. The time now is 09:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123