2017 © Pedro Peláez
 

wordpress-muplugin post-type-order

Order posts in any post type. Made for WordPress.

image

trendwerk/post-type-order

Order posts in any post type. Made for WordPress.

  • Friday, August 5, 2016
  • by haroldangenent
  • Repository
  • 3 Watchers
  • 2 Stars
  • 2,884 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Post type order

Order posts in any post type. Made for WordPress., (*1)

Features

  • Allows admins to order posts from any post type in a separate "Order" menu
  • Automatically orders posts
  • Divide ordering by taxonomy

Installation

composer require trendwerk/post-type-order

Usage

Step 1

Add the post type support 'order' to any post type, (*2)

'supports' => array( 'title', 'editor', 'revisions', 'order' )

Step 2 (optional)

You can divide the post type ordering by taxonomy, (*3)

'supports'          => array( 'title', 'editor', 'revisions', 'order' ),
'order_by_taxonomy' => $taxonomy

If you want to use this, it's impossible to do automatic ordering. You will need to adjust the query manually. Below is an example of a custom loop. This is a little more complex, but I'm sure you'll figure it out., (*4)

$posts = new WP_Query( array(
    'post_type' => $post_type,
    'post__in'  => TP_Post_Type_Order::get_posts( $term, $taxonomy, $post_type ),
    'orderby'   => 'post__in'
) );

Step 3

Order up!, (*5)

The Versions

05/08 2016

dev-master

9999999-dev

Order posts in any post type. Made for WordPress.

  Sources   Download

GPL-2.0+

The Requires

 

05/08 2016

1.0.2

1.0.2.0

Order posts in any post type. Made for WordPress.

  Sources   Download

GPL-2.0+

The Requires

 

22/01 2016

1.0.1

1.0.1.0

Order posts in any post type. Made for WordPress.

  Sources   Download

GPL-2.0+

The Requires

 

30/01 2015

1.0.0

1.0.0.0

Order posts in any post type. Made for WordPress.

  Sources   Download

GPL-2.0+

The Requires