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
0
votes
0answers
10 views

How can I have main menu item and first submenu both go to the custom post list? Using add_menu_page and add_submenu_page

I have a custom post type named slideshow. I'm using add_menu_page to add the main menu item, and add_submenu_page to add some submenu items. In the first call to add_submenu_page the slug property is ...
0
votes
0answers
8 views

Add multiple select to wp list table query | how a request is made in edit.php

I've created a multiselct select box in the wp list table header. It works. But the url has the values passed as an array for example key%5B0%5D=value1&key%5B1%5D=value2 What I'd like to be able ...
0
votes
0answers
11 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 ...
0
votes
1answer
19 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 ...
0
votes
0answers
16 views

WP_List_Table pagination 302 redirecting to paged=1

I've been working with an extended class for WP_List_Table and everything is working well including the search, however the pagination isn't working. While watching the network traffic I see 302 ...
0
votes
0answers
12 views

WP_List_Table $current_url points to my actual host rather than the reverse proxy host

I am a novice on the wordpress framework and I am currently using wordpress behind a reverse proxy. Like follows. Reverse Proxy Domain = https://example.com My actual Domain = https://example-...
0
votes
0answers
24 views

Best practice to show table data with filtering option

I have a database of foods and their nutrition values that needs to be shown on the website based on schema.org templates. The data needs to be displayed in one table with a big amount of data( nearly ...
0
votes
1answer
42 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 ...
0
votes
0answers
16 views

Create static meta key-value pair

I want to store 66*2 css and js files content and select and add them in Wordpress postmeta, by save_post() hook. The css key/value pair and js key/value pair will be static, which will be added to ...
0
votes
0answers
73 views

How to display a custom users table?

I want to create a separate users page where I can display users based on a large number of User meta. I know that there are hooks to add columns to the user table, but that's not what I want (since ...
0
votes
1answer
528 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 ...
1
vote
0answers
33 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....
1
vote
1answer
449 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. ...
0
votes
0answers
428 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->...
0
votes
0answers
45 views

Is there any hook for custom pagination in list table?

I am getting "WP_List_Table::pagination( string $which ) "for my tasks which is actually a method but i need hook to customize my own custom post type table. I am not extending wp_list_table .So what ...
0
votes
0answers
30 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, '...
0
votes
1answer
93 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 ...
0
votes
0answers
37 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. ...
0
votes
0answers
220 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 ...
1
vote
1answer
81 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. ...
0
votes
1answer
162 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.
0
votes
1answer
85 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 &...
0
votes
1answer
242 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 ...
2
votes
0answers
186 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. $...
0
votes
1answer
73 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(); ...
0
votes
1answer
34 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. ...
0
votes
0answers
36 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 ...
0
votes
0answers
209 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 ...
0
votes
1answer
166 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 ...
1
vote
0answers
240 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 ...
0
votes
2answers
323 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 ...
1
vote
1answer
204 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 ...
0
votes
0answers
87 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 ...
0
votes
1answer
470 views

Create Add New button [closed]

How to create Add New button in WP_List_Table Class ?
0
votes
0answers
64 views

Display data in using WP_List_Table

How to display data using WP_List_Table ? My code is like below class myTable extends WP_List_Table { var $example_data = array( array('ID' => 1,'booktitle' => 'Quarter Share', '...
0
votes
0answers
181 views

Sorting in WP_List_Table class

I am using WP_List_Table class to create tables in Admin panel. I am trying to implement Sorting feature. I am using below code public function prepare_items() { $this->items = $this->...
1
vote
1answer
304 views

Get .subsubsub count of post per status queried using pre_get_posts

My following query using pre_get_posts shows the Author only certain posts or pages with certain statuses that s/he should only see and of what belongs to him/her. Is there any way I can get a count ...
2
votes
1answer
190 views

Remove Admin Notice on page refresh

I have a simple question about admin notices. I want to display a message like 'Record updated successfully', and when user refresh again same page, then this notice should not be there as no record ...
2
votes
0answers
38 views

Accepting certain HTML tags in WP List Table column data

In my Custom Post Type (CPT), I altered the display of the post title using the method mentioned here. But for my custom use case, I need to pass some HTML like <sup></sup>. But by default ...
1
vote
0answers
47 views

How to sort by columns within a search result without displaying all rows again after sorting

I want to display a WP_List_Table on a submenu_page and offer a search function. The display of the data works so far and also the search, but the column sorting causes problems. If I click on the ...
0
votes
1answer
315 views

Admin table Query filtering “WHERE” for custom post type

So I have been searching for a solution on how I can dynamically change a CPT admin table query by filter the result WHERE Status is equaled to some custom status. I have searched using function ...
0
votes
1answer
555 views

How do I add an admin table to my page?

I've added a new page to my admin area, and am now trying to add an admin table to this page, using the WP List Table class (per these instructions). Per the instructions, I would like to first ...
0
votes
1answer
107 views

Didn't get array of users like in delete action WPList table in users tab

I am adding a bulk action assign just like delete. add_filter( 'bulk_actions-users', array( $this, 'add_bulk_action' ) ); /** * Add Bulk Assign Action. * @param array $actions Current ...
0
votes
1answer
188 views

How to make `wp-list-table` show the` custom-fields` I have in Custom-Post

everything good? I need the wp-list-table to also show custom-fields in each custom-post i have, and I do not know how to do that, In this image it shows the table with the fields: Title, Author and ...
-1
votes
1answer
194 views

How to use rowspan in WP List Table?

I can use WP_List_Table class as just a simple list. But, I want to use a rowspan or colspan which is a default feature of html table. How to apply rowspan or colspan?
0
votes
1answer
103 views

how to make custom link in wordpress

Hello guys I have a question to make a link below user list. Please check myspace edit link from picture. the below code used for this link: function cgc_ub_action_links($actions, $user_object) { ...
1
vote
1answer
169 views

Problems with: manage_${post_type}_posts_columns

Hi! I have just started programming in Wordpress with the ambition of creating something useful one day. But I've naturally run into problems right away, and now i have tried several solutions but ...
2
votes
2answers
2k views

Add search Value to wp_list_table pagination

I have a custom WordPress table using wp_list_table, with a search field: the search works well, but I am seeing that the search value isn't added to the pagination links when there are multiple pages ...
4
votes
1answer
293 views

How to Arrange Posts by Size in the WordPress Dashboard?

This may be a lame question, but I can't find an answer to this. Let's say you have a ton of empty posts that you want to delete. Obviously those who have some content will have more size. Is there ...
0
votes
0answers
574 views

How to add custom field to wp_list_table

I am trying build my own wp_list_table. And i am using this following code: https://github.com/pmbaldha/WP-Custom-List-Table-With-Database-Example/blob/master/custom-list-table-db-example.php It is ...