Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I’m not sure what you mean by a “reorder” functionality. That is the whole functionality of this plugin – the ability to reorder your posts/pages.

    Since this plugin is designed for developers to set up for their clients, I don’t expect to create any settings pages for things like selecting applicable post types. When a client uses it everything should “just work” and they shouldn’t be able to break it.

    Thread Starter wob

    (@wob)

    Hm,

    I’ve installed it but it doesn’t show up under the post menu, just the page menu, do I need to activate it in the same manner as you enable for CPT’s?

    Right, fair enough. I tried out another reordering plugin which adds a setting page under “settings” that easily lets you enable/disable for post, page and CPT’s. It’s convenient and should not interfere with clients (since you shouldn’t let them roam free with an admin account anyway!).

    Thanks for a great plugin!

    Plugin Author Bill Erickson

    (@billerickson)

    Ah now I understand what you’re asking about. Posts don’t have a page order. That is strictly for hierarchical post types (pages). Non-hierarchical post types (like posts) are sorted in reverse chronological order. To reorder posts, change the post date.

    While you *can* get it to show up on posts using the filter described in the documentation, you’ll also have to do some modifications to your theme to actually sort posts by menu order instead of date.

    Again, I highly recommend using the post date for managing the display of posts as that’s what WordPress and all plugins will display them as.

    Thread Starter wob

    (@wob)

    Ok, I understand.

    But it would be a great addition to the plugin I’m sure.
    There’s some other plugin around, but I think this one has the best potential (nice designed gui and functionality).

    Here’s the plugin I meant before:
    http://www.typeoneerror.com/articles/post/orderly-drag-and-drop-wordpress-ordering

    It’s neat with the settings panel and also works with posts. I know that most people won’t have use for a drag/drag reordering on posts, but for this current site I’m working with, it’s a great addition. It’s pretty handy when working with portfolio sites overall. So if you will, please have it in consideration for the future!

    Plugin Author Bill Erickson

    (@billerickson)

    Here’s how to make CMS Page Order apply to posts. Drop these in your theme’s functions.php (or your core functionality plugin):

    1. Add support for the ‘post’ post type: https://gist.github.com/2758065

    2. On your archive pages, sort by menu order: https://gist.github.com/2758095

    That second code snippet is limited to your blog page ( is_home() ) and your archives, like tag and category archives( is_archive() ). You can change the conditionals to determine where it applies

    Thread Starter wob

    (@wob)

    That’s great Bill, thanks!
    But how can I apply to CMS Page Order to multiple post types?

    Cheers

    Plugin Author Bill Erickson

    (@billerickson)

    Use this filter in your theme’s functions.php file or a core functionality plugin: http://www.billerickson.net/code/change-post-types-cms-page-order/

    Thread Starter wob

    (@wob)

    Ah, yeah, I’ve seen that, but I don’t know how I can specify more than just one post type. Could you show me please?

    $post_types[] = ‘rotator, post’;
    or
    $post_types[] = ‘rotator’, ‘post’;

    Doesn’t work.

    Plugin Author Bill Erickson

    (@billerickson)

    $post_types[] = ‘post’;
    $post_types[] = ‘rotator’;

    Hi Bill,

    Thanks for this plug-in. I am actually trying to do this same thing, ordering the posts. I’m a newbie with WordPress so it is possible that I did something wrong. I did paste the pieces of code in the functions.php however, I don’t see any changes in the Pages order.

    There’s no post in the page order list, draft or published. What should it look like? You talked about customizing, perhaps I missed the activation for this filter step. I saw in your file cmd-page-order.php, that you have a “$post_types = apply_filters( ‘cmspo_post_types’, array( ‘page’ ) );” So I assumed that it was activated.

    Perhaps you can guide me there.
    Thanks for taking the time.

    Plugin Author Bill Erickson

    (@billerickson)

    Can you post the code you added to your functions.php file?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: CMS Page Order] Add reorder functionality for posts’ is closed to new replies.