Support » Plugins » pagemash ‘trash” wp 2.9 update needed

Viewing 5 replies - 1 through 5 (of 5 total)
  • With pagemash 1.3
    Wordpress 2.9

    Totally agree about PageMash, it is fantastic!

    But I have a question… where is the “trash” anyhoo… not in the PageMash menu… Maybe it could be inlcuded so you can review trashed pages?

    @mercime

    (@mercime)

    Volunteer Moderator

    Agreed, PageMash is awesome and working in both WP and WPMU. Kudos and donations to the developer 🙂

    if you don’t want pageMash to list trashed pages, there’s a lil hack :
    – find the pagemash.php file in the plugin directory
    – on line 70 and 72, you should have the SQL requests.
    – simply add “AND post_status != ‘trash'” to them and you’re done :

    `if($wp_version >= 2.1){ //get pages from database
    $pageposts = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_type = ‘page’ AND post_parent = ‘$post_parent’ AND post_status != ‘trash’ ORDER BY menu_order”);
    }else{
    $pageposts = $wpdb->get_results(“SELECT * FROM $wpdb->posts WHERE post_status = ‘static’ AND post_parent = ‘$post_parent’ AND post_status != ‘trash’ ORDER BY menu_order”);
    }`

    Philip Arthur Moore

    (@philiparthurmoore)

    Volunteer Moderator

    Works like a charm, Kaayru. Thanks a ton.

    I fixed a bunch of warnings the plugin was producing with debugging turned on. You can download the file from here: http://binarym.com/wp-content/uploads/2010/03/pagemash.php_.zip

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘pagemash ‘trash” wp 2.9 update needed’ is closed to new replies.