wordpress

PostMash Custom — custom post order for custom post types

Drag’n’drop reorder­ing of posts, now also for cus­tom post types and taxonomies!

You might know the plu­gin Post­Mash, and its spin­off Post­Mash (fil­tered). Both very nice plu­g­ins, allow­ing drag’n’drop reorder­ing of posts. Espe­cially for those of us using Word­Press as a CMS this is a very nice fea­ture to offer our web­de­sign clients. But time went by, and nei­ther plu­gin were ever updated for Cus­tom Post types / Cus­tom tax­onomies, as intro­duced in WP 3.0. Enter Post­Mash Custom!

The new cus­tom post types and cus­tom tax­on­omy fea­tures intro­duced in WP 3.0 boosted WP’s capa­bil­i­ties as a CMS to a whole new level, and I quickly started using these new fea­tures for my web­de­sign clients, mak­ing event cal­en­dars, port­fo­lio sites and lots of other fea­tures a lot eas­ier to use, and more depend­able and eas­ier to cus­tomize than bee­ing depen­dent on plu­g­ins for every lit­tle fea­ture. But drag’n’drop sort­ing of posts were sorely missed.

So, finally I had to do get some­thing done myself. Here is the result — free for all:

Post­Mash Custom

Down­load post­mash custom

How to use:

Usage is exactly the same as its pre­de­ce­ces­sors postMash/filtered, so if you know/use those, you can just switch with this with­out any fur­ther work.

For every­one else: Unzip and upload to wp-content/plugins using your favorite FTP client, then acti­vate in Word­Press’ admin-area.

Then — in your theme’s index.php-file (or whereever you want to use it), find the begin­ning of “the loop”, start­ing with

if(have_posts())

Directly before that, add the fol­low­ing code:

<?php
    $wp_query->set('orderby', 'menu_order');
    $wp_query->set('order', 'ASC');
    $wp_query->get_posts();
?>

This just tells WP to get the posts ordered accord­ing to their “menu_order” posi­tion. There­fore you can get the posts ordered any­time you use a func­tion such as get_posts sim­ply by giv­ing it the required arguments:

<?php get_posts('orderby=menu_order&order=ASC'); ?>

Instruc­tions for Twenty Ten

Things may seem a bit dif­fer­ent in Twenty Ten, since the loop has been moved from the indi­vid­ual tem­plate­files into loop.php, but actu­ally it still works almost exactly the same. Below is the entire code you need for Twenty Tens index.php:

<?php
/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

get_header(); ?>

		<div id="container">
			<div id="content" role="main">
<?php
    $wp_query->set('orderby', 'menu_order');
    $wp_query->set('order', 'ASC');
    $wp_query->get_posts();
?>
			<?php
			/* Run the loop to output the posts.
			 * If you want to overload this in a child theme then include a file
			 * called loop-index.php and that will be used instead.
			 */
			 get_template_part( 'loop', 'index' );
			?>
			</div><!-- #content -->
		</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

More info in the readme in the zip. The plu­gin will also be added to WP’s repos­i­tory asap. The plu­gin can now be down­loaded at http://wordpress.org/extend/plugins/postmash-custom/

Dette innlegget ble publisert i Design, Webdesign, Wordpress og merket med , , , , , , , , , , . Bokmerk permalenken.

96 kommentarer til PostMash Custom — custom post order for custom post types

  1. Tilbaketråkk: Anonym

  2. Realodix sier:

    Screen­shot please…

  3. JoomlaCandy sier:

    1. Using fil­ter on the Reorder posts page, takes you to an invalid URL (a slash is replaced by %2F in the URL)
    2. When click­ing the Update but­ton, there is a Time­out error mes­sage. Reorder­ing is not saved.

    • TorsteinO sier:

      *!”#*$%$&!!**! Sorry, I thought I had fixed those two, but I obvi­ously f****ed up with how this word­press repository-thing works, not quite used to that yet.

      Both errors seem to be fixed here now with 1.0.3, which should show up in your updates any moment.

      Thanks for the bugreport! :)

      Torstein

  4. Tilbaketråkk: PostMash Custom – Custom Post Order Plugin | Wordpress Plugins

  5. Lisa sier:

    I would love to use this plu­gin for my site (reecesrainbow.org — we advo­cate for orphans with spe­cial needs) — but it isn’t work­ing with my theme. I get some js errors (just a yel­low tri­an­gle at the bot­tom of my screen) that men­tion some­thing about an object not being found and some­thing wrong with mootools. Any­way, the lines stay gray and I can’t drag them. I had the same prob­lem when I tried the other Post­Mash plu­g­ins, so it isn’t unique to yours. Would you be will­ing to debug a lit­tle if I paid you? What would you charge? I have a test server with every­thing set up that you could work on…

    Thanks,
    Lisa

  6. Derek sier:

    Hello,
    I do not know where to place the code you have listed inside the plu­gin?
    Can you please tell me where it goes within the Word­Press tem­plate?
    Thank you,
    Derek

  7. Derek sier:

    I have tried putting the sug­gested code in page.php as the code you say should be in index.php is not there, but it is in page.php, but this still does not work

    thanks

    • TorsteinO sier:

      Hi Derek, which theme are you using? In some themes (like twenty ten) things are done a bit dif­fer­ent than what has been the “stan­dard” way for years.

      How­ever — page.php is defi­nately not where you want to place it, that is the tem­plate for “pages”

  8. Graham sier:

    Great plu­gin! Any way to make the posts go into a ran­dom order? (I used the ran­dom sort­ing with native Word­Press query, but I want to be a fixed, per­ma­nent order that’s always in the same order, just ran­dom­ized the first time).

  9. bora sier:

    this is a great plu­gin!!
    if i couldn’t find it i would have to write it myself for a CMS project I’m work­ing on
    thanks a lot

  10. Vince sier:

    I’ve tried this plu­gin and added the code where you spec­ify but it’s not work­ing in WP 3.1 using the theme EvoLve.

    Any sug­ges­tions?

    Thanks in advaince

    Vince

    • TorsteinO sier:

      Hi Vince,
      in EvoLve the same index-file han­dles the loop for sev­eral dif­fer­ent tem­plates for the theme. So the first if ( have_posts() ) is not the one we want. If you look through the code, on line 328 you find a com­ment that the loop for 2– or 3-columns lay­out (which I believe you use?) starts, and on line 382 you find what I believe is “your” if ( have_posts() ).

      So, try adding the code on line 380–381, and I believe it should work :)

  11. Laurent sier:

    Hello,

    Is it pos­si­ble ton install this plu­gin in twenty ten theme. I dont find “if post” in index.php.

    Thank you

    Lau­rent

    • TorsteinO sier:

      Hi Lau­rent,
      in twenty ten the entire loop is moved to loop.php, so things seem a bit con­fus­ing at first. But it actu­ally is still almost exactly the same we need to do, just replace the orig­i­nal code in twenty tens index.php-file, with this:

      <?php
      /**
       * The main template file.
       *
       * This is the most generic template file in a WordPress theme
       * and one of the two required files for a theme (the other being style.css).
       * It is used to display a page when nothing more specific matches a query.
       * E.g., it puts together the home page when no home.php file exists.
       * Learn more: http://codex.wordpress.org/Template_Hierarchy
       *
       * @package WordPress
       * @subpackage Twenty_Ten
       * @since Twenty Ten 1.0
       */
      
      get_header(); ?>
      
      		<div id="container">
      			<div id="content" role="main">
      <?php  
          $wp_query->set('orderby', 'menu_order');  
          $wp_query->set('order', 'ASC');  
          $wp_query->get_posts();  
      ?>
      			<?php
      			/* Run the loop to output the posts.
      			 * If you want to overload this in a child theme then include a file
      			 * called loop-index.php and that will be used instead.
      			 */
      			 get_template_part( 'loop', 'index' );
      			?>
      			</div><!-- #content -->
      		</div><!-- #container -->
      
      <?php get_sidebar(); ?>
      <?php get_footer(); ?>
      
  12. Tim Peterson sier:

    Can any­one pro­vide the mod­i­fi­ca­tions I would need to make to the func­tions file of a The­matic child theme in order to get the plu­gin to work right?

    This page I stum­bled across was use­ful for another (older) plu­gin allow­ing a sim­i­lar man­ual reorder­ing:
    http://themeshaper.com/forums/topic/list-of-posts-in-a-category

    Thanks in advance,
    Tim

  13. Adam sier:

    Hi Torstein
    I’m using arras-theme and have installed your plug in but i can’t get it to work as the line if(have_posts)) doesn’t exist as far as i can see.
    I’ve tried installing the code you used for the Twenty Ten theme but that hasn’t worked either.
    Can you help with where i should install the code?

    Thanks a lot!
    Adam

    • TorsteinO sier:

      Hi Adam,
      as long as you use word­press, that line (or some­thing very sim­i­lar) is in there, some­where, 100% cer­tainly.
      But — espe­cially in more advanced themes, it may often be put some­where else than index.php. I have not tried arras, but it seems home.php would be the cor­rect file. How­ever — there are sev­eral loops/queries on that page, so for each area you want to use this plu­gin, you must mod­ify the query to use “order_by=menu_order” and “order=ASC”. This can be done in a few dif­fer­ent ways, I cant take the time to have a more through look on arras right now, but it should be enough to drop these three lines in home.php in the query you want to modify.

          $wp_query->set('orderby', 'menu_order');
          $wp_query->set('order', 'ASC');
          $wp_query->get_posts(); 
      
  14. Juri sier:

    Hi,
    I’m using Shop­per­Press and I inserted the code in the line 90 of this page http://pastebin.com/LY2b2Pv6 which is the page where I want to order posts.
    Also even though i don’t insert any code in the admin panel I can’t drag and drop post.…should I do any­thing to use the drag and drop?

    Thanks

  15. Juri sier:

    I have the but­ton and when I click on it I got posts dis­played but I can’t drag and drop.
    Also do you think in the line 90 is the right place to insert the code and make Post­Mash work­ing? Now it’s not work­ing at all in the back-end and front-end.…Thanks for your help

    • TorsteinO sier:

      Hm, that prob­a­bly means there is a con­flict between the ver­sion of mootools used in post­mash, and some of the javascripts shop­per­press uses. And that is not eas­ily fixed…

      How­ever, first of all: Try deac­ti­vat­ing all other plu­g­ins, and see if it works then. If it does, try acti­vat­ing the other plu­g­ins one by one and check if it still works, if its another plu­gin that is the prob­lem, you should find it quickly like this. Then you can see if you find a dif­fer­ent plu­gin instead of the one caus­ing the conflict.

  16. Misteroiz sier:

    Hello, in tem­plate ADVNews­Pa­per dont have the loop and If Have_post my code is

    query('showposts='.$npdv_options["feaPostCount"].'&cat='.$npdv_options["featuredCatID"]);
    while ($gabquery->have_posts()) : $gabquery->the_post();
    ?>

    how to replace this code?

    Sorry for my eng­lish i’m French

  17. Lisa sier:

    Every few days, I have to go in and resort my posts by cat­e­gory. The top one always stays in the right place, but I can’t get the bot­tom one to stay at the bot­tom. Other posts — even posts I have made no changes to — are end­ing up at the bot­tom of the list.

  18. Bruno5 sier:

    Hi Torstein! Did you find which changes I need to make so I can use your plu­gin with Arras Theme?
    Thank you.

    • TorsteinO sier:

      Hi Bruno,
      sorry, but as I said, I really don’t have time to look into that — there are some­thing like a bil­lion word­press themes, and many of them use dif­fer­ent files where they place the loop and the query, so I have absolutely no pos­si­bil­ity to find out this for every theme.

      How­ever — it should be pos­si­ble, and it is prob­a­bly not very dif­fi­cult either. My sug­ges­tion is that you ask the theme author.

      all the best,
      Torstein

  19. Canny sier:

    Hi Svar,
    I’m really con­fused, I placed your code in the index file, but how do I get to the Ajax inter­face?
    Thanks

  20. Canny sier:

    It works now, thank you!

  21. Miquel sier:

    Hello, thanks for this pluguin. I really needed it. But I have the fol­low­ing prob­lem:
    With the pluguin acti­vated, I can order posts but I can­not update them, or upload pho­tos, etc
    If I try to update (save) a post, the error is:
    Can­not mod­ify header infor­ma­tion — head­ers already sent by (out­put started at site-path.…/wp-includes/functions.php:3387) in site-path…/wp-includes/pluggable.php on line 897

    If I try to upload an image, I get this error:
    Can­not mod­ify header infor­ma­tion — head­ers already sent by (out­put started at site-path…/wp-includes/functions.php:3387) in site-path…/wp-admin/async-upload.php on line 26

    I would appre­ci­ate any help. Thank you

    • TorsteinO sier:

      hm, that sounds strange miquel, I’ll look into it. Mean­while, could you try the old “deac­ti­vate other plugins”-trick, just to see of that solves it?

  22. work4thematic sier:

    Tim Pater­son,

    // ACTIVATE POST MASH PLUGIN FOR THEMATIC
    func­tion postMash_orderPosts($orderBy) {
    global $wpdb;
    if(is_category(10)) {
    echo “”;
    }
    elseif ( is_home() || is_front_page() ) {
    echo “”;
    }
    else {
    $orderBy = “{$wpdb->posts}.menu_order ASC”;
    }
    return($orderBy);
    }
    add_filter(‘posts_orderby’, ‘postMash_orderPosts’);

  23. work4thematic sier:

    Uhh, that’s ugly try this


    // ACTIVATE POST MASH PLUGIN FOR THEMATIC
    // AND ONLY USE PLUGIN ON PORTFOLIO PAGES, HOME AND NEWS PAGE DEFAULTS TO WP
    function postMash_orderPosts($orderBy) {
    global $wpdb;
    if(is_category(10) || is_home() || is_front_Page()) {
    get_posts();
    }
    else {
    $orderBy = "{$wpdb->posts}.menu_order ASC";
    }
    return($orderBy);
    }
    add_filter('posts_orderby', 'postMash_orderPosts');

  24. Lorin Rivers sier:

    Love the plu­gin, but I don’t have the option to reorder my cus­tom post types. Do I have to put some­thing in the post type def­i­n­i­tion or some­thing so that Post­Mash is aware?

  25. mpmchugh sier:

    I also don’t’ see how this works with cus­tom post types. My cus­tom post type posts are show­ing up under the posts>reorder posts area, which isn’t very use­ful. There’s also no menu to fil­ter by post types, so I’m at a loss as to how it sup­ports them at all.

    • TorsteinO sier:

      @lorin & mpm­chugh: I just tested with every­thing updated here, and I think I know what causes your prob­lem:
      It seems you must have a tax­on­omy for your post type, and the post must be in a cat­e­gory. Fix those two, and it should work :)

      This is defi­nately some­thing that should be fixed (if no tax­on­omy or no cat­e­gory selected within tax­on­omy => use post type name for fil­ter­ing option), but I really don’t have time for it right now. I also have a few other things on my list, but if some­one is will­ing to fix it, I’m more than happy to give credit & a link in the plugin!

  26. Vince sier:

    Would love to be able to use the plu­gin but I’m not able to re-order the posts (move them) using the Dynamix theme… Any sug­ges­tions? I’ve tried dis­abling plu­g­ins, no go.

    Thanks.

    • You have remem­bered to insert the code pro­vided? As long as you change the query for the loop so that it has orderby=menu_order, it should work on any theme

  27. PB sier:

    The plu­gin works great but I mainly need this to change the order of my posts based on the image that is in the post. Is there any way to show a small thumb­nail of the first image in the post on the REORDER POSTS page?

    Thanks.

  28. Davide sier:

    Thank you for your plu­gin, it’s a won­der­ful tool for my needs.
    I’ve installed it on my theme (cre­ated with Artis­teer and cus­tomized), I’ve used it, reordered my posts, and every­thing worked pretty well.
    In the mean­time I’ve installed other plu­g­ins. I think some­thing has gone in con­fict with post­Mash. Now if I open the post­Mash options page in the Dash­board all the posts are grey, dis­abled, and I can no longer drag & drop them. Nev­er­the­less, the posts order hasn’t changed, they’re still ordered as I wanted (when mov­ing them was pos­si­ble). And they remain cor­rectly ordered even if I unin­stall post­Mash, rein­stall it, etc. So, appar­ently in the blog every­thing seems to work fine, except I can no longer drag any post!
    I’m not a code expert, so I hope you can help me bring post­Mash back on track.
    Thank you very much in advance!
    Davide

    • Its prob­a­bly another plu­gin that con­flicts with PMC, try deac­ti­vat­ing all other plu­g­ins, then check if PMC works again, and then try to reac­ti­vate the other plu­g­ins one by one, and you will find out which one it is that causes the problem :)

  29. Trevor sier:

    Hi, I didnt quite under­stand from what i read (and couldnt quite see how to do it if it is pos­si­ble)… but is this plu­gin avail­able to be used in a stan­dard hosted Word­Press site (.wordpress.com) ??

    • No, sorry, its prob­a­bly not pos­si­ble to use in a wordpress.com-hosted site, since you have to do a minor mod­i­fi­ca­tion on the theme files to use it.

  30. Hi,
    I’m hav­ing an issue w/Post Mash in a WP 3.2 HTML5 CSS3 liq­uid lay­out site. Got it work­ing after some strug­gles as a tem­plate called within home page:


    2012 Featured Speakers


    <a href=”” rel=“bookmark” title=””><article id=“post-” >

    Live site is: http://www.greathomeschoolconventions.com/
    (cur­rent dis­play post num­ber set at 24)
    Screen grab of prob­lem is: http://www.azzcatdesign.com/azzcatdevelopment/DEMOS/post_mash/query_48.jpg
    (grab of dis­play posts num­ber set at 48)

    Is this some sort of PHP prob­lem in my imple­men­ta­tion? I feel the CSS is OK, since 24 dis­plays per­fectly. My quest is for 36 posts…12 across/3 down.

    Thanks!

    • TorsteinO sier:

      Hi Cather­ine,
      the css in the theme doesnt mat­ter at all to this plu­gin, all the work is done by the data­base and the query.

      Basicly — just get your site work­ing with­out the plu­gin, then change the query for the posts you want to order, to orderby=menu_order, and order=ASC, and thats it :)

      Post the query you are using here if you want, and I’ll have a look at it.

  31. Chicken Vivo sier:

    The plu­gin works just fine in the pages with the code, but I can’t seem to be able to drag my posts up and down to reorder them in the plu­gin admin. I am using wp 3.1

  32. Eileen sier:

    I use the fol­low­ing loop to get the titles of posts grouped by sub­cat­e­gory. Where would I put the code you rec­om­mend into this loop?

    cat_name . ”;
    echo ”;
    $subcat_posts = get_posts(‘cat=’ . $subcat->cat_ID );
    foreach($subcat_posts as $subcat_post) {
    $postID = $subcat_post->ID;
    echo ”;
    echo ;
    echo get_the_title($postID);
    echo
    ;
    }
    echo ”;
    } ?>

    Thanks for any help.
    Eileen

  33. Eileen sier:

    Whoa.…that code didn’t copy prop­erly. Let me try again. Looks like it will be o.k., but not sure it will stick when I hit send…

    cat_name . ”;
    echo ”;
    $subcat_posts = get_posts(‘cat=’ . $subcat->cat_ID );
    foreach($subcat_posts as $subcat_post) {
    $postID = $subcat_post->ID;
    echo ”;
    echo ;
    echo get_the_title($postID);
    echo
    ;
    }
    echo ”;
    } ?>

    • Eileen sier:

      Nope. Didn’t stick. Is there a spe­cial way to copy php code into a com­ment so it doesn’t get messed up when you hit send?

  34. John Ho sier:

    Can you let me know if this plug in can reverse order of the posts (so posts appears in 1, 2,3 … order) wti­hout chang­ing the post order in “Most Recent Posts ” (oder in 17, 16, 15 .….. 3, 2, 1)? My cur­rent theme is Green Theme.

    Also, I tried using plug in, but the post order lost ran­dom? Do you know why? (e, g. 3, 4 1, 2, 5 etc…)

    Thank you so much.

  35. Barak Levy sier:

    hi

    this is my code for next/back/previous

    <?php next_post_link(__(‘%link’, ‘frame­work’), ‘%title’) ?>

    <a href=””>

    <?php previous_post_link(__(‘%link’, ‘frame­work’), ‘%title’) ?>

    if i use your plug to order the post — what do i need to do that the these links will go aco­ord­ing the new order ?

  36. Barak Levy sier:

    <?php next_post_link(__(‘%link’, ‘frame­work’), ‘%title’) ?>

    <a href=””>

    <?php previous_post_link(__(‘%link’, ‘frame­work’), ‘%title’) ?>

  37. Jared sier:

    I am using the Post­Mash Cus­tom plu­gin on my port­fo­lio site, and it is very use­ful for reorder­ing con­tent in my “Project” cus­tom post type, but the sug­gested next_post_link_menu() and previous_post_link_menu() links do not work when used in my sin­gle “project” dis­play tem­plate. They do not appear at all.

    I do not use “cat­e­gories” for my “project” post type, only a vari­ety of cus­tom tax­onomies. If I alter the plu­gin code to set “in_same_cat” to false, the links do appear, but they then link to blog posts rather than projects.

    Is there a way to get the Post­Mash Cus­tom next and pre­vi­ous post links to work with a cus­tom post type in the cus­tom post sin­gle dis­play template?

    Thanks for a great plugin!

  38. carlo sier:

    Please help i have fullscreen tem­plate in wp i tried adding the code with and with­out it i see the reorder posts and i do and hit update but noth­ing changes on my page any ideas?

  39. Anthony sier:

    I am try­ing to fol­low your direc­tions but I can’t find any­thing in the index.php I find it in the pages.php. I am a novice with deal­ing with cod­ing on WP . I not sure where to place it and I would really want to see how this works if it is going to fix my prob­lem with my posts being out of order. Please respond as soon as you can.

    Thank you

  40. Jesse Smith sier:

    What I need is a plu­gin that allows drag-and-drop man­ual order­ing of posts in the Word­Press “Posts” admin page. Any­body know of any such thing? I thought Post­Mash Custom’s changes would be reflected in the admin list­ing of posts, but no.

  41. Hi Jesse,
    no, in the “Posts” admin page the posts are listed by date (not sure if its by cre­ation date or pub­lish­ing date). Its prob­a­bly pos­si­ble to change that, but I’ve never seen any­thing that lets you reorder them by drag/drop right there — thats why this plu­gin exists — I had the same need myself.

  42. Tilbaketråkk: ドラッグアンドドロップで簡単に並び順を変更できるWordPressプラグインまとめ | モンキーレ

  43. frances sier:

    When using this under 3.3.1 it says ‘updated suc­cess­fully’ but then all pages on the site throw a 404 and wp-admin is inaccessible.

    Deleted and restored data­base to get out of this, and repeated to confirm.

    • TorsteinO sier:

      Hmm, that sounds strange, I have sev­eral sites where its used, which does not give that error. What theme do you use, Frances?

      • frances sier:

        Hi Torstein,

        thanks for your quick reply. It’s a cus­tom theme I have made, with mul­ti­ple loops pulling in dif­fer­ent cus­tom post types as well as posts.

        I’ve tested it sep­a­rately in a local install (wp 3.1.1, twen­tyeleven 1.3) and it works ok there.

        The strange thing is that it affected wp-admin also, so I would get “There was a prob­lem pro­cess­ing your request.” until I dumped the db and restored from backup.

        I also tried the other plu­g­ins based off the orig­i­nal Post­Mash, and these resulted in the same problem.

        Sorry that’s not much to go on, I’ll look into it more.

        Frances

        • TorsteinO sier:

          No prob­lem, its inter­est­ing to know about any­thing like that since I use this plu­gin on sev­eral sites for clients myself. Ok, two quick ideas:
          You have tried doing the update again?
          What hap­pens if you turn off the plu­gin before updat­ing, and turn it back on after updating?

  44. frances sier:

    None of that works. I tried the usual: unin­stalling the plu­gin via ftp, unin­stalling all plu­g­ins, delet­ing every­thing in functions.php, and even delet­ing all but the wp stuff in htac­cess, and none of that worked. As soon as I updated with the plu­gin, the whole site fell over.

    It is work­ing on other sites though, so it’s likely some unique com­bi­na­tion of everything.

  45. Lina sier:

    Those who are using The­sis theme need to add this code to cus­tom php to make post­Mash work:

    func­tion postmash_custom_post_order(){
    if (is_front_page()){
    global $query_string;
    query_posts( $query_string . ‘&orderby=menu_order’ );
    }
    }
    add_action(‘thesis_hook_before_content’, ‘postmash_custom_post_order’)

  46. Alex Marzan sier:

    heya
    would you con­sider updat­ing your plu­gin to use jquery mobile so we’ll be able to use drag con­trols on mobile devices like the ipad also?

    thanks in advance!

    • Hi Alex,
      I’d defi­nately con­sider that, how­ever — the plu­gin is cur­rently using mootools, not jquery. And here we have a cou­ple of problems:

      1: I have too much work & not enough time,
      2: my one-year-old daugh­ter and my GF
      3: JS/jquery/mootools is *really* not what I do best …

      SO — if any­one with more time and the nec­ces­sary skills would like to help out with this, I’d gladly give you access and credit. I could even pay some­one to do it, if any­one is interested?

  47. Jared Volpe sier:

    Hi. We are using the fol­low­ing method to get posts:

    <arti­cle id=“post-” class=“post”>

    <time class=“date” datetime=””>

    <a href=”” title=””>

    <?php the_content(‘Read the rest of this entry »’); ?>

    How do we inte­grate the plugin?

  48. arman sier:

    Hi, I am using The Archi­tect Them and below is the orig­i­nal code from index.php, can you please show me where the code goes . I tried but didnt work

    <img src=”” alt=”” />


    <a href=”” title=””>

  49. fontaholic sier:

    i use WP Cus­tom Post Lists and I won­dered if I could some­how get it to rec­og­nized the sort order cre­ated by your plu­gin? it has a pull­down in the wid­get that offers ASC or DESC. i don’t know much about edit­ing plu­g­ins but it seems so use­ful to be able to do this!

  50. Marisa sier:

    Does this work with fea­tured cat­e­gories and fea­tured slid­ers? I really need to know whether it does or not — If you don’t have time to tell me how that is fine — I will keep try­ing to fig­ure it out if I know that it does. Here is my code.

    Busi­ness Updates

    query(‘category_name=business-updates&showposts=4′,‘orderby=menu_order’);

    while($businessFeaturePosts->have_posts()) :

    $businessFeaturePosts->the_post();?>

    <a href=”” title=””>

    • TorsteinO sier:

      No rea­son it shouldn’t work there, Marisa, but I believe you have a cou­ple of errors in your query:

      query(‘category_name=business-updates&showposts=4′,‘orderby=menu_order’);
      should be
      query(‘category_name=business-updates&showposts=4&orderby=menu_order’);

  51. mark sier:

    Hi I’d love to use your plug in, its just what I need but can’t seem to get it to work.
    I’m using the “hatch” theme
    any help much appre­ci­ated
    thanks

  52. Zero-Blade sier:

    tried this and both older post­mash plu­g­ins and none of them seem to work.
    added the query code before the if(have_posts()) in the index of the theme, but it doesn’t work.
    where am i sup­posed to find the to add ‘orderby=menu_order&order=ASC’? i went trough all of the theme’s files, even the ones im sure don’t have to and i couldn’t find even one get_posts.. using zeesyn­ergie as theme.
    any help is appre­ci­ated, cheers!

  53. Tilbaketråkk: How to Change the Post Order in WordPress | 5E, making unique websites

  54. Sam sier:

    I change the order, but it’s not updat­ing on my site.

  55. Sykot sier:

    Is it pos­si­ble to fil­ter by Tag? Fil­ter by category/date brings to many post in the admin panel.
    Would be real help.

  56. dp sier:

    Sud­denly I get a Time­out Error when I try to update the order of the posts.

    Could be because I updated to 3.5? Prior to that I been using the plu­gin for long time with­out any issues.
    The order itself is still work­ing, all the post keep the order they had but I cant change it anymore.

    Please help, oth­er­wise I would have to switch to other plu­gin… the plu­gin has not been updated since march 2011 and this site seems to be aban­doned also half a year ago, so…

    • ssss sier:

      Time­out Error..I guess its because the lat­est update of word­press…
      Please I wish you fix it
      thank you

  57. Carla sier:

    The grat­i­tude of every home in our Island, in our Empire, and indeed through­out the world, except in the abodes of the guilty, goes out to the British air­men who, undaunted by odds, unwea­ried in their con­stant chal­lenge and mor­tal dan­ger, are turn­ing the tide of the world war by their prowess and by their devo­tion. Never in the field of human con­flict was so much owed by so many to so few.

  58. Maxwell sier:

    Right away I am ready to do my break­fast, when hav­ing my break­fast com­ing yet again to read more news.

  59. Terrie sier:

    Dur­ing the tour, Michael will per­form 2 nights at the brand new Aviva Sta­dium in Dublin, Ire­land which will be the first con­certs to take play at the venue. When it comes to sports fans, one would be hard-pressed to find a more ded­i­cated, hard­core fan con­tin­gent than those that sup­port teams com­ing out of Los Ange­les. His par­ents dis­cov­ered his act­ing tal­ent when he was 13 years of age and he started singing in night­clubs at the age of 16.

  60. Jennie sier:

    New Rail Jets will cut travel time from Inns­bruck to Vienna by 22 min­utes to 4 hours and 15 min­utes, from Salzburg to Vienna by 23 min­utes to 2 hours and 22 min­utes. s abun­dant clubs with vary­ing high­lights and vibes like serene clas­si­cal, cozy disco, trendy R&B, and quixotic jazz melody. Shoot­ing him will cause an erup­tion of dis­gust­ing pus, show­er­ing the player in goo if they are stand­ing too close.

  61. Nichole sier:

    If some one desires expert view about blog­ging after­ward i pro­pose him/her to go to see this weblog, Keep up the nice job.

  62. Mable sier:

    Hi to every one, the con­tents exist­ing at this site are gen­uinely awe­some for peo­ple expe­ri­ence, well, keep up the good work fellows.

  63. Venetta sier:

    hello there and thank you for your infor­ma­tion – I have def­i­nitely picked up some­thing new from right here. I did how­ever exper­tise sev­eral tech­ni­cal points using this site, since I expe­ri­enced to reload the web­site lots of times pre­vi­ous to I could get it to load prop­erly. I had been won­der­ing if your host­ing is OK? Not that I am com­plain­ing, but slug­gish load­ing instances times will some­times affect your place­ment in google and can dam­age your high qual­ity score if adver­tis­ing and mar­ket­ing with Adwords. Any­way I am adding this RSS to my email and can look out for a lot more of your respec­tive inter­est­ing con­tent. Make sure you update this again very soon.

Click on a tab to select how you'd like to leave your comment

Legg igjen en kommentar

Din e-postadresse vil ikke bli publisert. Obligatoriske felt er merket med *

Du kan bruke disse HTML-kodene og -egenskapene: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>