postMash (filtered) - custom post order
I've just modified this plugin to be category (5 posts)

  1. Taylor Baybutt
    Posted 5 years ago #

    I am using More Types to create my custom post types. This plugin allows me to set an automatic category for each post type and then hide the category box on the write page so that made this a little easier.

    on line 66 in postMASH.php, I added this:
    $categoryid = "188";
    replace 188 with your own category id.
    I then search and replaced $_GET['cat'] with $categoryid to trick the filter into always filtering by my category. This leaves for a lot of extra code hanging around but I'll deal.

    Then, I wanted to move the postMASH submenu into the custom post type/category that it will be modifying to make it most clear for the client. on what will be line 246 (was 245) I modified the code to be

    add_submenu_page('edit.php?post_type=resource', 'Library: Order Posts', 'Order', $minlevel, __FILE__, 'postMash_main');

    replace 'resource' with the name of your post type.

    Also, I have not had to tackle how I would use this for more than one category/post_type but I would probably resort to making a cloned plugin with the necessary edits.

    Hopefully when this plugin is updated for 3.0.1 these will be built in but it functions correctly for me on this version of WP.


  2. eilia13
    Posted 5 years ago #

    It's good. when I search and find postmash, I want to use it similar that you edit. I will test it. thank

  3. Taylor Baybutt
    Posted 5 years ago #

  4. eilia13
    Posted 5 years ago #

    but with it I can't only get order for posts in one category!
    can it?

  5. Taylor Baybutt
    Posted 5 years ago #

    you're right but if you only want to order a certain category of posts, it sounds like that'd be better off being a custom post type and employing the link i posted.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • postMash (filtered) - custom post order
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic