WordPress.org

Support

Support » Plugins and Hacks » postMash - custom post order » [Plugin: postMash – custom post order] reopening autodraft issue

[Plugin: postMash – custom post order] reopening autodraft issue

Viewing 1 replies (of 1 total)
  • I was able to get rid of the autodrafts by changing one line of code in the plugin. No guarantee on this, but it has worked for me so far:

    The line of code is:

    $pageposts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'post' ORDER BY menu_order");

    Change it to:

    $pageposts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_type = 'post' AND post_status <> 'auto-draft' ORDER BY menu_order");

    This just eliminates the auto drafts from showing up in the list. You can change this code in the WordPress UI (if you are an admin) by going to the Plugins>Edit menu item (and then select Postmash from the drop-down on the right). The code is about 50 lines down.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: postMash – custom post order] reopening autodraft issue’ is closed to new replies.
Skip to toolbar