WordPress.org

Ready to get started?Download WordPress

Forums

pagemash 'trash" wp 2.9 update needed (6 posts)

  1. C0BALT
    Member
    Posted 4 years ago #

    With pagemash 1.3
    Wordpress 2.9

    Place a page into the trash (don't empty the trash)

    This page will appear as a "normal" page in the pagemash structure.
    Ideally it would be X-ed out with a red ex or hazed out in red.

    AWESOME PLUGIN!

    http://wordpress.org/extend/plugins/pagemash/

  2. Integrati
    Member
    Posted 4 years ago #

    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?

  3. @mercime
    Volunteer Moderator
    Posted 4 years ago #

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

  4. Vincent Ballut
    Member
    Posted 4 years ago #

    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");
    }`

  5. Philip Arthur Moore
    Volunteer Moderator
    Posted 4 years ago #

    Works like a charm, Kaayru. Thanks a ton.

  6. Matt McInvale
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic