aStickyPostOrderER : Plugin To Change WordPress Post Order

If you’d like to re-arrange the order that WordPress displays posts this plugin might help.

With aStickyPostOrderER you can customize the order of appearance of posts per category, per tag – or over-all – in a WordPress (versions 2.3+) blog. Useful for using WordPress as a Content Management System (C.M.S.).

NB! This will only work with WordPress 2.3+!

Download

Downloads and latest version now via the official WordPress plugins repository.

aStickyPostOrderER 0.2.2.2 Beta (22 December 2007) – This latest beta version includes the ability to set meta-stickiness, i.e. you can specify that post from a specific category or tag, or a specified number of posts of same should appear before or after the sorted posts, or after everything else.

Wish-list

In future I might add these abilities:

  • to have stickiness expire at a certain point in time and such,
  • to also order per tag done
  • specify CSS selectors or custom code insertion to identify ‘sticky’ posts
  • and have some auto configuration options etc.
  • to propagate order set for parent categories to child categories
  • set entire category sticky etc. in beta
  • order-by-day and/or order-by-month etc. (Good idea, Thanx Mike!)

Ideas and requests most welcome!

Change Log

  • v0.2.2.1 – 22 Dec 2007:
    As described above, implemented the meta-stickiness functionality, bit more clean up of interface.
  • v0.2 – 18 Dec 2007:
    Lots of stability improvements and as well as the interface elements for meta-stickiness – which when implemented will allow you to specify that you e.g. want the last 5 posts in a specific category(ies) or tag(s) to precede everything else, or move an entire category right to the ‘bottom’ and some stuff in between – more detail when I release the next version (hopefully with that part working. Special thanks to Alvise Nicoletti of for a significant amount of testing issues related to using the plugin with complex nested category structures – also for the great review of the plugin he’s published.
  • v0.1.7 – 2 Dec 2007:
    Fixed bug in MySQL that created listing errors in some cases for some blogs that had been updated from previous versions of WordPress.
  • v0.1.6 – 28 Nov 2007:
    Adds ability to order posts per tag and improves interface showing no. of sorted posts / cat. or tag.
  • v0.1.5 – 27 Nov 2007:
    Support for non-default database prefixes.
    Not listing empty post categories as options for sorting.
    Show name of the category being sorted while sorting.
  • v0.1.4 – 22 Nov 2007:
    Fixed the creation of the database table at activation of the plugin.
  • v0.1.3 – 21 Nov 2007 :
    Modified DB structure to eliminate errors reported associated with ambiguous field names, changing title to aStickyPostOrderER.

Background

I created this plugin to solve the cahallenge posed by non-trivial ordering of posts when using WordPress as a Content Management System(C.M.S.) at David Krut Publishing.

There we use a single WordPress install to run both the news and blog sections as well as a bookshop catalog – for news items the default reverse chronological order is perfect but in the case of books there are issues other than date of uploading to the site that should determine the prominence the particular ‘post’ about a book is given on the site. This plugin allows manulally configuring the order posts appear in when viewing a specific category – with ordered posts apearing first followed by the rest in their usual order without braking the default WordPress pagination.

Sites that use aStickyPostOrderER

If you use aStickyPostOrderER please pop me an email saying so with your URL (along with any praise you’d like to include:) to andre@pixelplexus.co.za and I’ll link to your site from here.

Donations & Punting

Please consider making a donation towards my hosting
Donate towards my web hosting bill!
and/or giving this page a dig:

How To

  1. Unzip and place the ‘aStickyPostOrderER’ folder with its content in the WordPress plugins directory.
  2. Activate on the admin panel’s plugins page.
  3. Click on Manage, aStickyPostOrderER.
  4. Click on the name of a category or tag you want to order.
    (Those with fewer than two posts are not displayed)
  5. Posts in that category are listed, each with a text field to the right of it.
  6. Type a number into that field to make the corresponding post appear in that position relative to existing sorted posts, e.g. 1 to make it appear at the top, if there is already a post assigned to that position the sorted posts will be shifted up.
    • To remove a sorted post from the sticky list, send it to position 0 (zero).
    • Post that are not sorted will still appear in the default order after the sorted posts on the blog’s front-end.

Known Issues

  • Themes that execute their own MySQL queries may not (read ‘probably won’t') show the posts in the sorted order. A good way to test is by using the Default theme and comparing results.
  • There were various issues with previous versions that affected especially blogs with content that had been upgraded from earlier versions of WordPress, please use the latest version of the plugin.
This entry was posted in Dev. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

167 Comments

  1. Posted 13 February 2010 at 5:18 am | Permalink

    It looks like a great plugin and it works great on the category view, but for some reason, it removes all posts from the front page.

  2. James
    Posted 13 February 2010 at 2:47 pm | Permalink

    Is it still under development ?

  3. Posted 17 February 2010 at 9:38 pm | Permalink

    Yup, but in very s l o w m o t i o n :-(, work is very demanding at the moment

  4. Posted 23 February 2010 at 9:36 am | Permalink

    wohooooooo… your plugin solved my problem abou sort/order-ing issue.
    Thanks and keep rockin!

  5. Andreu
    Posted 26 February 2010 at 1:17 pm | Permalink

    Hi.

    It’s possible to make a query_posts without the aStickyPostOrderER cusomized order of “Order Index, Archive and Search Results Order”?

    In other words, I need to make a query of the lastest news, but I also need my aStickyPostOrderER customized order on my homepage.

    I’ve seen that some users asked the same question but I haven’t seen any good answer.

    Anyway, thanks for this amazing plugin!

  6. Posted 11 March 2010 at 11:38 am | Permalink

    Hi,

    I´m very happy using ASticky… anyway, I´ve a problem:

    We use to publish 15-20 entries that change everyweek because we remove some items and add new ones, this procedire leaves empty records on the ordered list.

    in “Editing order of post in Index/archive view” page I’ve a list of 30 records but many of them empty. Also in next sorted record list I´m going to 187 empty records… because everytime we add a entry, it´s been placed after last used cell.

    Even if a move all records to first places, the 187 record will still exist.

    sample:

    How could I cleanup the list and keep only the 15-20 entries in one 30 records pages ?

    Is this list of empty records growing and growing.. I´m doind something wrong ??

    thanks…

  7. Posted 14 March 2010 at 6:56 am | Permalink

    Very kewl plugin. I always struggled when trying to order posts. Thanks for putting this out there.

  8. Posted 15 March 2010 at 1:25 am | Permalink

    The lastest version allows overriding the customised order, use”…?aspo=vanilla” in the url, or if you created a listing with query_posts add aspo=vanilla, eg. ‘”…query_posts(‘cat=13&showposts=10&aspo=vanilla’);…”

    Also, identified the issue with posts not showing up in certain custom listings on some themes – has to do with WP_query peculiarities. From this version they should show up without custom ordering in lists created with WP_Query

    h.t.h.

  9. Posted 15 March 2010 at 8:38 pm | Permalink

    This plugin literally saved my life with my site Stylozero.

    While it did the job for me with sorting posts in specific categories for my portfolio, it does not seems to work out for the featured category, which is called from within a page, with a custom query:

    $featured = new WP_Query(‘cat=10&showpost=6′);
    while($featured -> have_posts()) : $featured -> the_post();

    Is there a way to make it work with such a setup?
    Thanks.

  10. Posted 15 March 2010 at 10:48 pm | Permalink

    Gianfranco

    Glad it helped. The best is to avoid WP_Query. As much as the codex recommends it in places, it seems inconsistent with the rest of WordPress. If you want the custom order rather use query_posts:
    eg.

      // Get the last 3 posts in the featured category.
      <?php query_posts('category_name=featured&showposts=3'); ?>
    
      <?php while (have_posts()) : the_post(); ?>
        <!-- Do featured stuff... -->
      <?php endwhile;?>
    
    //We reset the loop
      <?php rewind_posts(); ?>
    
    //We build the normal loop that will list out blog posts
      <?php while (have_posts()) : the_post(); ?>
        <!-- Do stuff... -->
      <?php endwhile; ?>
    

    see http://www.catswhocode.com/blog/multiple-wordpress-loops
    and http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_2 if you want to store the normal stuff in a variable

    if there are enough requests to make WP_Query work with the custom ordering I might ‘fix’ it somehow

  11. Posted 16 March 2010 at 11:18 am | Permalink

    Thanks André, that worked!

    I didn’t even considered calling a regular loop intead of a custom one (WP_Query).
    But that did the trick.

    Your plugin is great, keep up the good work and further development.

  12. Rochelle
    Posted 21 March 2010 at 4:02 am | Permalink

    I think this is a wonderful plugin! However, I figured out that it is causing the author’s name to not be displayed when this plugin is active. So, instead of a post reading:

    By John Doe on 03/20/2010

    the By-line reads:

    By on 03/20/2010

    Do you have any idea what can be done to put the publically displayed name back into a post when using this plugin?

    Thank you,
    Rochelle

  13. Rochelle
    Posted 21 March 2010 at 4:11 am | Permalink

    Never mind, it appears that I was incorrect. My apologies…

  14. Posted 31 March 2010 at 4:22 am | Permalink

    On the main admin page for the plugin “=astickypostorderer” is there a way to have the categories be listed alphabetically rather than them be listed by category id number? Currently they are shown as being listed from 1-300 or so.. I have over 300 categories and being able to search alphabetically is much easier to make changes. So basically I’d like the admin page to show the categories by ascending or descending order.. Where in the code on what page would I need to make changes to have the categories listed in alphabaetical order in the admin section?

  15. thomas
    Posted 1 April 2010 at 11:11 am | Permalink

    Thanks very much for your plugin, it helps me a lot

  16. Posted 7 April 2010 at 1:56 am | Permalink

    I’ve installed the plug in and am looking forward to getting it set up however I can’t seem to get to the Manage function.

    I’ve followed the instructions to this point:
    # Activate on the admin panel’s plugins page.
    # Click on Manage, aStickyPostOrderER.
    # Click on the name of a category or tag you want to order.

    I can’t find anything to click on to “Manage” this plug in. All the Plug Ins Manage page shows for this plug in is the choices to Deactivate or Edit and the Edit link is to edit the code of the plug in, not to manage or set it up. Can anyone help me? I’m sure I’m missing something really simple :(

  17. Belinda
    Posted 7 April 2010 at 8:21 am | Permalink

    Your Plugin is fantastic! Thank you so much. Would you believe I tried about four of them yesterday and yours was the only one that did what I needed.

    I have Digg’d you! Donation on the way…I really REALLY appreciate your hard work here! You’ve saved me so much heart ache! Thanks heaps!!!

58 Trackbacks

  1. By aStickyPostOrderER | Amyklai on 21 August 2009 at 1:29 pm

    [...] dem wunderbaren WP-Plugin „aStickyPostOrderER“ (mit dem hier das Hin- und Hersortieren der Blogeinträge bewerkstelligt wird) gibt es nun [...]

  2. [...] Read the original here: PixelPLEXUS » Blog Archive » aStickyPostOrderER : Plugin To Change … [...]

  3. [...] aStickyPostOrderER you can customize the order of appearance of posts per category, per tag – or over-all – in a [...]

  4. [...] 4.1 AStickyPostOrderER [...]

  5. By Callware.com Website Information on 16 March 2010 at 10:38 pm

    [...] AStickyPostOrderER by AndreSC [...]

  6. [...] 4.1 AStickyPostOrderER [...]

  7. [...] Zur Plugin Seite Webhoster Check: [...]

  8. [...] AStickyPostOrderER [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>