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 ago.

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

    Waais
    Member

    Hello ,
    i have read this http://voodoopress.com/edit-and-delete-posts-from-front-end-with-no-plugin/ 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” */
    3
    4 wp_delete_post( get_query_var( ‘postid1’), true ); /* delete the post we choosed */
    5 };

    Please help me out here

    #1460

    Rev. Voodoo
    Keymaster

    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.

    #1465

    Waais
    Member

    Hi Voodoo,

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

    Best regards

     

    Wais

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

You must be logged in to reply to this topic.