Blog

Wordpress custom admin table from database with pagination

Categories: 

Tags: 

Objective

  • Create a custom table with data from a database sql query, with sort and pagination, in WordPress admin panel.
  • Step 1: create a custom menu link to access a new page for the table
  • Step 2: create callback function for the menu link, prepare data input for pagination, sort and print form + table
  • Note: this should be improved to use full WordPress advantages of wp_list_table

Step 1: create a custom menu link to access a new page for the table

Pages