Activity Stream
48,167 MEMBERS
6864 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1.     
    #11
    Member
    Website's:
    0DayBlog.com ParadiseW.net Blog4Whores.com FilmsTube.org
    Well, if you wanna delete all posts do this, go http://sitename.com/wp-admin/edit.php and you can check them all, or if you need to delete every posts, just go to PhpMyAdmin and empty the 'posts' table.

    Cheers.
    Click me

    I'll upload for you(paid), PM me.

    I need payza2paypal exchanged(urgent!)

  2.   Sponsored Links

  3.     
    #12
    Member
    Quote Originally Posted by Phamous View Post
    Add this in functions.php

    PHP Code: 
    function wp_delete_post_link($link 'Delete This'$before ''$after '') {
        global 
    $post;
        if ( 
    $post->post_type == 'page' ) {
        if ( !
    current_user_can'edit_page'$post->ID ) )
          return;
      } else {
        if ( !
    current_user_can'edit_post'$post->ID ) )
          return;
      }
        
    $message "Are you sure you want to delete ".get_the_title($post->ID)." ?";
        
    $delLink wp_nonce_urlget_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" $post->ID'delete-post_' $post->ID);
        
    $htmllink "<a href='" $delLink "' onclick = \"if ( confirm('".$message."' ) ) { execute(); return true; } return false;\"/>".$link."</a>";
        echo 
    $before $htmllink $after;

    And then add this next to the edit link in single.php

    PHP Code: 
    <?php wp_delete_post_link('(trash)''<div class="post-edit">''</div>'); ?>
    It'll ask you if you're sure you want to delete the post just in case you accidentally click delete

    Not working
    removed

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Buying] Script To Edit Pintrest Posts
    By planck in forum Marketplace (Buy, Sell and Trade)
    Replies: 0
    Last Post: 13th May 2012, 04:54 PM
  2. Which poster can edit the posts?
    By Szabortusz in forum General Discussion
    Replies: 2
    Last Post: 17th Jun 2011, 11:21 PM
  3. Users not able to edit there own posts
    By Lordiez in forum vBulletin
    Replies: 5
    Last Post: 27th Mar 2011, 06:42 PM
  4. [Hiring] Someone To Edit My Posts (Inside .txt Files)
    By proXace? in forum Completed Transactions
    Replies: 2
    Last Post: 15th Mar 2011, 01:24 PM
  5. How do users can edit Posts icon?
    By duonglg in forum vBulletin
    Replies: 3
    Last Post: 23rd Feb 2011, 10:45 PM

Tags for this Thread

BE SOCIAL