[Resolved] [Plugin: CMS Page Order] Add reorder functionality for posts
Is this a possibility?
And it would be nice to include a more convenient way to add support for custom post types!
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.
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!
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.
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:
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!
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
That’s great Bill, thanks!
But how can I apply to CMS Page Order to multiple post types?
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/
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’;
$post_types = ‘rotator’, ‘post’;
$post_types = ‘post’;
$post_types = ‘rotator’;
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.
- The topic ‘[Resolved] [Plugin: CMS Page Order] Add reorder functionality for posts’ is closed to new replies.