Skip to content

hijiriworld/intuitive-custom-post-order

Repository files navigation

Intuitive Custom Post Order

Description

Intuitively reorder Posts, Pages, Custom Post Types, Taxonomies, and Sites with a simple drag-and-drop interface.

Intuitive Custom Post Order lets you reorder items with simple drag and drop in the WordPress admin.
You can sort Posts, Pages, Custom Post Types, Taxonomies, and (on Multisite) Sites.

Go to Settings → Intuitive CPO and select which content types you want to make sortable.
Once enabled, just drag and drop items in the list tables—no extra setup is required.

If you create custom queries in your theme or plugins, set orderby=menu_order and order=ASC to respect the drag-and-drop order.
To keep the default WordPress order (by date), explicitly set orderby=date and order=DESC.

Source code and development are available on GitHub.

Installation

  1. Upload the 'intuitive-custom-post-order' folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to Settings → Intuitive CPO and choose which post types or taxonomies you want to make sortable.
  4. Simply drag and drop items in the list tables to reorder them.

Local development

To ensure following WordPress coding standards @wordpress/scripts is used for linting. Currently the CSS and JavaScript parts are not heavy so that there is no bundle process implemented, yet.

Dependencies

Installation

To use the plugin coding standards and linting navigate to the plugin folder and run the following commands in terminal:

composer install
npm i

Lint

After the installation is complete you can process linting with this command:

npm run lint

Create a zip file

When you are ready you can create a zip file, which excludes not necessary files with this command:

npm run plugin-zip

Documentation

License

GPLv2 or later

About

WordPress Plugin: Intuitive Custom Post Order

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •