help !! Delete post from front-end

Home Forums General WordPress Talk help !! Delete post from front-end

Tagged: , , ,

This topic contains 2 replies, has 2 voices, and was last updated by  Waais 5 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #1458


    Hello ,
    i have read this post, i need that user can delete they post fron front- end i realy need to get this done as soon as possible, but i have no idea in wich file i have
    if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] ) {
    2 set_query_var( ‘postid1’, $_POST[‘postid’] ); /* set the “postid” value from the delete button of the post we choose to delete into “postid1” */
    4 wp_delete_post( get_query_var( ‘postid1’), true ); /* delete the post we choosed */
    5 };

    Please help me out here


    Rev. Voodoo

    Well, if you notice right at the beginning of that tutorial, it mentions that it is a continuation of some other tutorials. YOu would have had to have made the files with that code in it. There were several tutorials I made about how to post from the front end. Then fitoussi wrote 2 tutorials which add to mine, to allow for editing and deleting posts made using the original forms.



    Hi Voodoo,

    thanks for your reaply, i guess ist not what im looking for.

    Best regards



Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.