Abdul Muqsit

Abdul Muqsit

Founder
SoftEmblems.com
admin@softemblems.com

Pagination for REST API & SQL based listing in JetEngine

Pagination for REST API

In various scenarios, fetching data from a third-party website using REST API or displaying non-WordPress-based table data using an advanced SQL query in JetEngine can be challenging due to the lack of pagination support. This limitation may arise from the REST API endpoints or the query builder itself.

Logic behind this pagination is it hides X number of DIV and show it only using the code.

The easiest hack is to use JQuery & few lines of CSS to handle such a situation using the following steps.

  1. Add your listing grid in the page from REST API or SQL-based Query
  2. Insert a HTML Widget
  3. Copy & Paste Code in HTML
  4. Enjoy!

Jquery Code