這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

postMash – custom post order

外掛說明

Posts are usually listed in reverse chronological order as they are often used for posting regular time-orientated content.
postMash lets you customise the order your posts are listed in using it’s simple Ajax drag-and-drop administrative interface. Plus it gives quick access to toggle posts between draft and published states. Particularly useful if you’re using WordPress as a CMS.
It now no longer requires any modifications to your template code. If you disable postMash your post will go back to your usual ordering.

Feedback: http://joelstarnes.co.uk/contact

Localization

Currently only available in english.

安裝方式

You no longer need to modify your template code in any way!!

Here is the old install info, not needed now, but maybe useful if you want to remove the old code from you template, but can’t remember what you changed..

Open wp-content/themes/your-theme-name/index.php and find the beginning of ‘the loop’. Which will start: if(have_posts()). Then add the following code directly before this:

<?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 according to their ‘menu_order’ position. Therefore you can get the posts ordered anytime you use a function such as get_posts simply by giving it the required arguments:

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

Checkout the get_posts() function in the wordpress codex for more info.
Note that it says menu_order is only useful for pages, posts have a menu_order position too, it just isn’t used. postMash provides you with an iterface so that you can use it.

常見問題集

If you have any questions or comments, please drop me an email: http://joelstarnes.co.uk/contact/

None of it is working

The most likely cause is that you have another plugin which has included an incompatible javascript library onto the postMash admin page. If this is the case all the posts will be shaded grey.

Try opening up your WP admin and browse to your postMash page, then take a look at the page source. Check if the prototype or scriptaculous scripts are included in the header. If so then the next step is to track down the offending plugin, which you can do by disabling each of your plugins in turn and checking when the scripts are no longer included.

Do I need any special code in my template

Nope, not any more.

Which browsers are supported

Any good up-to-date browser should work fine. I test in Firefox, IE7, Safari and Opera.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈postMash – custom post order〉的開發相關工作。

參與者

將〈postMash – custom post order〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2.0

  • No longer requires modifcation to your template
  • Correctly locates plugin directory, in case you’ve relocated it

1.1.0

  • Updated menu position for WP2.7
  • Better install instructions

1.0.1

  • Fixed incorrect case in the path name to saveList.php

1.0.

  • Initial Release