이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Global Posts Ordering

설명

Yet another plugin for ordering posts? YES!

This plugin makes it possible to adjust the global order of posts from different post types. Basically, it tries to get together the best functionalities of the superb plugins postMash and Simple Page Ordering. Global Posts Ordering uses the stand-alone admin options page of postMash for globally setting the order of posts and the very cool AJAX approach of ‘Simple Page Ordering’. Best you test it yourself and see if it fits your needs.

Please Note:

The major use of this plugin is for mixing posts from differen post types in overview pages that only use the first level of hierarchical posts (e.g. “Books”, “DVDs”, “Records”).

Tested on

  • (OSX) Safari 🙂
  • (OSX) Firefox 🙂
  • (OSX) Chrome 🙂
  • (OSX) Opera 🙂
  • (WIN) Firefox 🙂
  • (WIN) Chrome 🙂
  • (WIN) IE 9 🙂
  • (WIN) IE 8 🙂
  • (WIN) IE 7 :/

Rating and Bugs

As you can see, this plugin is not version 1.0 yet, so please post comments about any bugs you find, before giving it a bad rating.

스크린샷

  • Just drag the posts up and down to change their order

설치

  • Install easily with the WordPress plugin control panel or manually download the plugin and upload the extracted folder to the /wp-content/plugins/ directory

  • Activate the plugin through the ‘Plugins’ menu in WordPress

  • Open the file functions.php in your theme and put the following in there:

    if ( class_exists(“global_posts_ordering”) ) {
    $global_posts_ordering = new global_posts_ordering(array(“my_post_type_1”, “my_post_type_2”, “my_post_type_3”));
    }

You can include the built-in post types ‘post’ and ‘page’ as well as custom post types.

  • Save the functions.php file.

  • If you registered only one post type, there should be a new submenu-item under your post type saying “re-order”. If you registered multiple post types, you should now have a new top-level menu item saying “Global Order”. Each lead you to the drag-and-drop re-ordering interface.

  • Don’t forget to set the “orderby” option, if you fetch your posts in your template, for example like this:

    $args = array(
    “post_type”=>array(“post”, “page”),
    “orderby”=>”menu_order”,
    “order”=>”ASC”,
    “numberposts”=>-1
    );
    $posts = get_posts($args);

Of course, there are many different ways to fetch posts in your template. It’s only important to set the “orderby” to “menu_order” and “order” to “ASC”. Other ways to get the posts ordered by menu_order are described on the postMash Installation Page

  • If anything doesn’t work, please comment.

후기

모든 2 평가 읽기

기여자 & 개발자

“Global Posts Ordering”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Global Posts Ordering”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

0.9.5

  • Added all post statuses to the list, now you can also re-order drafts
  • First element gets now menu order 1, not zero, so that new posts get inserted at the first position, not second
  • Added edit-links to the post-title labels
  • Added edit-links to the post-type labels
  • Minor CSS tweaks

0.9.4

  • If only one post type is registered with the plugin, put it’s admin link in the submenu of this post type, labeled “Re-Order”

0.9.3

  • Wait until admin_init to remove invalid post types (Error produced in 0.9.2)

0.9.2

  • Prevent the plugin from producing errors if no post types are given
  • CSS Tweaks

0.9.1

  • resolved an error with localization

0.9

  • Global Posts Ordering