Skip to main content

Questions tagged [wp-list-table]

This class is used to generate the List Tables that populate WordPress' various admin screens. It has an advantage over previous implementations in that it can be dynamically altered with AJAX and may be hooked in future WordPress releases.

Filter by
Sorted by
Tagged with
1 vote
1 answer
76 views

Checkboxes on custom `WP_List_Table` also check select all

In a bespoke theme, I have a custom class that extends WP_List_Table. The relevant parts look somewhat like this: class Custom_List_Table extends WP_List_Table function get_columns(): array { ...
ACJ's user avatar
  • 63
1 vote
0 answers
28 views

WP_List_Table sortable column with WC_Order_Query doesn't work

I've created a class that extend WP_List_table to manage WC orders in a plugin admin menu. public static function get_orders( $per_page = 5, $page_number = 1 ) { global $wpdb; $query = ...
Daniel Ringuet's user avatar
0 votes
0 answers
25 views

Search results not finding in paginated pages just in visible rows

I created this plugin to display a list of registered users with the Faciliator role. Displays the list in a table with name, country and avatar as titles. It works fine but the search box only ...
Artus's user avatar
  • 92
0 votes
1 answer
212 views

Add Additional Column in "Users" Dashboard Area - BP Extended Profiles (WordPress)

I have a site with extended profile fields. I can't find the particular way of adding an additional column as: Username | Name | Email | Site Role | Discord (this is the additional column) The ...
Shoaib Qazi's user avatar
0 votes
1 answer
70 views

I want to force secondary rows using WP_List_Table

I am making a custom Pages screen to display all of my published pages. I started with Matt Van Andel's excellent Custom List Table Example that works with WP_List_Table. Each item looks something ...
pg.'s user avatar
  • 141
-1 votes
1 answer
376 views

Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table

I am working on plugin development and I am getting issues with the table list. I have tried the below code but I am getting an issue called Fatal error: Uncaught Error: Cannot use object of type ...
Naren Verma's user avatar
0 votes
1 answer
360 views

Extend WP_List_Table class - Edit wp_usermeta - WPPB.me Boilerplate - Action error

I’m developing a WordPress plugin where the goal/ action is to manipulate data in the wp_usermeta table, by extending the WP_List_Table class, and using it in the WPPB.me boilerplate. I’ve been able ...
Sylvester DeMouser's user avatar
0 votes
0 answers
247 views

WDTException: [0]: One or more columns doesn’t have a header

I am trying to upload an Excel sheet to my WordPress site to create a databases from it but I get the error: There was an error while trying to save the table! OK WDTException: [0]: One or more ...
marcelomo's user avatar
0 votes
1 answer
52 views

Best Way To Locate Offending WP Table

I am trying to import a production db into local test db. Problem I can't locate and therefore can not exclude a table from the wp db export eclude_tables=.... command, which contains a path that only ...
mjones's user avatar
  • 153
0 votes
1 answer
907 views

Custom WP LIST Table filter

im developing a plugin which shows an information about orders, it shows billing information, purchased product, and travel date. I need to make an filters for table which let to select a specific ...
Vyk's user avatar
  • 1
1 vote
2 answers
119 views

How to add query args to links to CPT admin submenu

I have a custom post type I've created, and I've added an admin submenu page to display some data it generates. So far, so good. I'm displaying the data with my local extension of WP_List_Table, and I ...
philolegein's user avatar
0 votes
0 answers
72 views

How to sort posts without featured images in the WordPress Dashboard? thanks

Is there any option to sort posts by without featured images in WordPress dashboard? (function code)
mojtaba7b's user avatar
1 vote
1 answer
75 views

Fallback media image for featured image not working in admin column

I want to display a fallback image if a custom post type does not have a featured image set and displayed in a custom admin table column. However all that is being output is the image url and not the ...
Krys's user avatar
  • 135
0 votes
1 answer
503 views

sortable columns for multiple custom post types not working

I have two custom post types named professor and campus. To each of these CPT's I have added two custom admin columns named image and last_modified, which currently display correctly on both CPT's ...
Krys's user avatar
  • 135
0 votes
0 answers
110 views

WP_List_Table can't create filter link

I create a List table by extending WP_List_Table and showing data from an array. The problem is when searching the URL it adds nonce & _wp_http_referer automatically and a weird structure like ...
Habib Hasan's user avatar
0 votes
1 answer
251 views

How to customize custom post type's list table?

I have created a custom post type and here's I'd like to remove the title and add several custom post meta instead, but how do i customize my custom post type's existing list table?
Amenadiel's user avatar
  • 125
0 votes
0 answers
168 views

WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for questions which are from assessment_question custom post type.The metabox is being displayed on an other custom post type '...
Muhammad Faizan Haidar's user avatar
0 votes
1 answer
867 views

specific rows style for in custom list table using WP_List_Table

I am building a custom WordPress plugin where I create a custom list table for entities in a custom database table, extending the WP_List_Table class. Everything works as expected but I want to style ...
Rajanish Singh's user avatar
2 votes
0 answers
199 views

Clone wp-admin/users.php (Users Admin Page)

I have created a new page in admin. I need to show all the users in this page(like Users admin page). The reason for this is because i want to show certain custom user roles only on this page. I tried ...
Thowzif Abdullah's user avatar
0 votes
1 answer
263 views

How to Define Multiple List Tables in a Single Submenu

I am coding a plugin using WP_List_Table (The source code I am using.). The plugin I coded performs the function of adding a submenu to another plugin in the admin panel. A simple one-file plugin. I ...
user avatar
0 votes
0 answers
64 views

Admin Custom Plugin List Files in admin Table

I'm building a plugin that works only in admin. I've a page where I need a list of files, users can only download or delete the file. I've this questions: I don't know what is better to list the ...
Alex's user avatar
  • 1
1 vote
0 answers
203 views

How to show filters on table when using WP_List_Table

I'm trying to show filters at the top of the table using the WP_List_Table class. But nothing shows up. Ive also checked the documentation but there's no example on how to use the method. Please see ...
Blues Clues's user avatar
0 votes
1 answer
490 views

WP_List_table with form of method=GET redirects to wrong url after submit

I am trying to implement a filter button on my wp_list_table, however I need the form where the table is called to be of method=GET so the query parameters for filtering retain their values for ...
Narendra Patel's user avatar
0 votes
0 answers
166 views

How do I edit an add in wp_list_table and return to same page

I am just not understanding something and apparently, I don't know what it is. I have a wp_list_table that I use to manage a table. I have it working correctly but I would like to edit the values ...
Bud's user avatar
  • 43
0 votes
1 answer
2k views

Add and Remove Row Actions in an Existing WP_List_Table

I would like to modify the row actions of an existing WP_List_Table. For example, in the Users section in the back end, I would like to remove the "Edit" option from each user. I would like ...
Greeso's user avatar
  • 2,176
0 votes
1 answer
544 views

Bulk Action in wp_list_table

I only want to do bulk action on delete function. I have research so many example on google but still cant make it. Will be so much appreciate if someone be able to help me out on this. Below are my ...
SF_IreSearch's user avatar
0 votes
1 answer
566 views

How do I get Wordpress to refresh my wp_list_table after bulk_delete

I have a wp_list_table that is functioning, ie - I can add records to the table, delete individual records, edit individual records, and delete bulk records. Only one issue. After I do a bulk delete ...
Bud's user avatar
  • 43
0 votes
1 answer
1k views

Wp_List_Table is showing as no class found named wp list table

I Developed a plugin I wanted to show data in wordpress table in admn area for which Wp_List_Table clas is used to do that I tried to use this but the problem is that it not being able to properly ...
Usman Khan's user avatar
0 votes
2 answers
3k views

Passing search query and custom filter to wp_list_table grid

I'm using extended WP_List_Table class to output my custom DB data. Facing with a problem - if I search or filter my data, everything works fine, but if I go to the next page or click any sorted ...
user3013494's user avatar
1 vote
0 answers
157 views

Wp_list_table search box not working for custom value from database

I am creating a from builder , so in wp list table i am unable to achieve search result from database for from builder entries, Please get attached link for example. Search submission : https://prnt....
Mainuddin Rashed's user avatar
6 votes
1 answer
2k views

Custom WP_List_Table displays blank rows

I am trying to make a custom WP_List_Table extension to display a custom post type. Here is what the table and the DOM look like. You can see that it is rendering the table rows empty, and no header. ...
chrispytoes's user avatar
0 votes
0 answers
2k views

How to select meta key in custom database query

I am using wp_list_table to create a custom table and I want to get some meta data. I can get it to work if I am just querying the users table for example like so: $sql = "SELECT * FROM {$wpdb->...
user10980228's user avatar
0 votes
0 answers
76 views

Unwanted redirection to the article page using WP_LIST_TABLE in the woocommerce_product_data_panels filter

I'm creating a plugin that works with WooCommerce. My plugin adds a tab in the "Product data" section of the WooCommerce product page. add_filter( 'woocommerce_product_data_tabs', array($this, '...
Mytraas's user avatar
1 vote
1 answer
595 views

Index of row in WP_List_Table

In WP_List_Table, the method column_$custom( $item ), if implemented, is called once for each row of data that is being displayed in the list table. So, if my list table has three rows of data, then ...
Greeso's user avatar
  • 2,176
1 vote
0 answers
74 views

Sort by last 7 days in post list

My post list design is good. But the list sorted by popular and it not working. Please see my code below and shed some light on it. I want to sort my posts by their popularity by views of last 7 days. ...
Nazmul's user avatar
  • 11
0 votes
0 answers
823 views

Issue removing columns from admin table

I'm trying to remove the columns thumbnail and featured from an admin table. At the same time I'm adding one additional column. The post type is property. I would like to do it via code instead of ...
user avatar
1 vote
1 answer
311 views

Bulk actions redirects to "options.php" page when clicked (WP_List_Table)

I'm having a problem with WP_List_Table. I'm following a tutorial on internet (https://wpengineer.com/2426/wp_list_table-a-step-by-step-guide/) because I need to display an table on my plugin page. ...
Julio Cesar de Azeredo's user avatar
0 votes
1 answer
795 views

How to remove the bottom table headers (column names) in WP_List_Table?

By default, the WP_List_Table has column names at the top and the bottom of the table. How can I remove the bottom table headers? Thanks. p.s. I have already subclassed the WP_List_Table.
Raptor's user avatar
  • 272
0 votes
1 answer
364 views

WP_List_Table Inside Metabox Not Working on Clicking Search Button

I'm trying to display a WP_List_table inside a metabox. The metabox is for listing registered users to a course(LifterLMS Course Post Type). The table columns contain user_id, user_name, percentage &...
Muhammad Faizan Haidar's user avatar
0 votes
1 answer
898 views

Save custom field on WP_List_Table

I have a custom field which is named clicktripz_object_location. I've created a WP_List_Table with the following code; if(is_admin()) { new UCO_Wp_List_Table(); } /** * UCO_Wp_List_Table class ...
thiras's user avatar
  • 101
2 votes
0 answers
343 views

Undefined index: hook_suffix

I am getting "Undefined index: hook_suffix" error in Wordpress while trying to execute the below. Here $class_name extends MyRegularClass and MyRegularClass extends WP_List_Table. Please help. $...
Debashis Prusty's user avatar
0 votes
1 answer
190 views

Storing current page WP list table HTML data into a PHP variable

I am trying to store my render post table HTML data of just the table into a PHP variable after the table is completely loaded. I've tried to store: $table = new Custom_Table_Example_List_Table(); ...
samjco-com's user avatar
0 votes
1 answer
139 views

MySQL update text field with '

I need to be able to have a charvar field that contains an apostrophe like Woody's. I'm using wp_list_table to simplify the editing of the table. After making the update, the field contains Woody/'s. ...
Bud's user avatar
  • 43
0 votes
0 answers
138 views

Is it possible to change the default WP post table's data source?

I was wondering if there was a function to change the default MySQL data source (to JSON or REST data) for a post table without having to make a custom Wp_List_table? I know how to make a custom WP ...
samjco-com's user avatar
0 votes
0 answers
408 views

WP_List_Table add custom bulk actions

Is it possible to add a bulk action to an existing WP_List_Table object? Quforms uses class Quform_Entry_List_Table extends WP_List_Table I would like to add a custom bulk_action to their Entries ...
Mike Baxter's user avatar
1 vote
1 answer
582 views

How to display additional info in the plugins admin table?

When I open Dashboard-->Plugins, the page lists all of my installed plugins in an admin table. It displays two columns: 'Plugin' and 'Description' (screenshot). How can I add a new column to this ...
cag8f's user avatar
  • 1,937
2 votes
1 answer
794 views

wp_create_nonce doesn't verify when using WP_List_Table

I've created an admin page where I'm displaying a list of a MySQL Table using WP_List_Table. In this table I need to be able to delete a record when I want to. And that's where I have a problem. To ...
Stef's user avatar
  • 76
0 votes
2 answers
970 views

I want to redirect the url to the previous page

I have created a table in which i have delete link something like http://localhost/wptheme/wp-admin/admin.php?page=batch-op-settings&action=batch-delete&post_id=5 and i have added a code to ...
Flutterer's user avatar
  • 115
1 vote
1 answer
599 views

Modify WP_List_Table pagination "item(s)" text?

I'm developing a plugin which creates several custom tables on pages in the WP dashboard. My question is whether it's possible (without modifying core files) to change the text displayed in the ...
Josh Jones's user avatar
0 votes
0 answers
306 views

Display Form in Admin Panel and Save data to Database

I have a Add New Button in Admin Panel like below image. I would like to display a Form like below image and save data to a Database after clicking the Add New Button. How can I do that ? I am ...
Foysal Vai's user avatar