Giter Site home page Giter Site logo

rest_posts_orderby_menu_order's Introduction

REST posts orderby menu order

banner

  • Contributors: bobbingwide
  • Tags: REST, orderby, menu_order, Gutenberg
  • Requires at least: 5.5.1
  • Tested up to: 5.5.1
  • Stable tag: 0.0.1
  • Requires PHP: 7.2.0
  • License: GPL-2.0-or-later
  • License URI: https://www.gnu.org/licenses/gpl-2.0.html

Improve orderby menu_order for REST requests.

Description

Use this plugin if the version of Gutenberg/WordPress you're using does not yet support this natively and you have more than 100 pages.

Filters a REST query ordered by menu_order to ensure a repeatable sequence over multiple pages.

It does this by adding post_title and ID to the orderby clause, to ensure a consistent sort sequence as menu_order is not always set.

This plugins implements a workaround for Gutenberg issue #12795 PR #23647.

This plugin can be removed when Gutenberg and/or WordPress core supports pagination of requests ordering on menu_order.

@see https://core.trac.wordpress.org/ticket/46294

Installation

  1. Upload the plugin files to the /wp-content/plugins/rest_posts_orderby_menu_order directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress

Screenshots

Upgrade Notice

0.0.1

Use this plugin if the version of Gutenberg/WordPress you're using does not yet support this natively and you have more than 100 pages.

Changelog

0.0.1

  • Changed: Renamed main plugin file to more accurately reflect what it does.
  • Tested: With Gutenberg 9.0.0
  • Tested: With WordPress 5.5.1
  • Tested: With PHP 7.4

rest_posts_orderby_menu_order's People

Contributors

bobbingwide avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.