CodeCanyon

Reorder: Reorder Posts and Pages

  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 50 and 99 items
  • United States
fjarrett says
Purchased

Hi Ben,

When debug mode is TRUE we’re getting a lot of notices on the Posts > Reorder screen.

Since $_GET['post_type'] is not available the var $post_type becomes an undefined index.

This is a start in the right direction I think…
if ($wp_version >= 3.0) {
    if ($_GET['page'] == 'post') {
        $post_type = 'post';
    } else {
        $post_type = $_GET['post_type'];
    }
} else {
    $post_type = $_GET['page'];
}
3 months ago
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Referred between 50 and 99 users
argosmedia says
Purchased

Works great. Very neat plugin, thanks!

2 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
brkard says
Purchased

hi…

i have too much posts…. is there a way to filter them…i want to filter posts from a spesific category then reorder posts with your plugin…is there a way to do this…

21 days ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
rhoyt says
Purchased

I recommended you add filter ‘reorder_exclude’ some time ago, and I appreciate you implementing it. I currently have a post type that I want to reorder alphabetically. I have included it in the excluded post types, but your function applied to the posts_orderby filter is still getting called. Can you modify your function to check if the post type is not an excluded one? Something like this:

function reorder_orderPosts($orderBy) {
    global $wpdb, $pagenow;
    if ($pagenow == 'edit.php') {
        $excludedPostTypes = apply_filters('reorder_exclude', array());
        if (!in_array($_GET['post_type'],$excludedPostTypes)) { 
            $orderBy = "{$wpdb->posts}.menu_order ASC, post_date DESC";
        }
    }
    return $orderBy;
}
17 days ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
jff3if38 says
Purchased

It doesn’t seem to work.. I have wordpress 3.3.2

I change the order in wp-admin, click update and when I go to view the page on the front end, the page doesn’t load.. :/

7 days ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
jff3if38 says
Purchased

I would apprecaite a response to the problem I’m having.

The plugin doesn’t work. I make a change to it in wp-admin and save. When I go to the front end to load the page, it won’t load.

4 days ago
by
by
by
by
by