Delete Link For Wordpress Blog

by Kishore on March 17, 2009

If you looking for adding a link to Delete a post from your blog front end, then you can use this function

wordpress code

You can call this function inside a loop where you display the post. When you click on the link, you will get a message for confirming the post delete. If you click ok the post will be deleted else nothing happens.

<div class="dateright">
                    <p><span class="icomment"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a></span><span style="font-size:9px;margin-left:5px;"><?php wp_delete_post_link(); ?></span></p> 
                </div>

Possibly Interesting Posts

New Guidelines for Plugin Developers - Wordpress : Mark Jaquith has written on his blog on the Wordpress plugin repository where Plugin Authors can hos..[](0)
Adobe Plugs 13 Security Holes in Critical Update : Adobe Systems embarks on a new schedule for security updates with 13 critical fixes in tow for Reade..[](1)
Security Expert Suggests Twitter Focus on Output Escaping not Input Filtering : Twitter's status blog this morning announced that Twitter has addressed the most recent variant of..[](1)
Checklist for submitting your plugin to Wordpress Extension Directory : You will be knowing that Wordpress can host your plugin at the Wordpress Extension Directory. You c..[](57)

Leave a Comment

Previous post:

Next post: