Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
1answer
20 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
0answers
8 views

WP_List_Table in frontend how to style with Bootstrap4

I show in frontend a custom table created as extending WP_List_Table as it follows. add_action('init', array($this, 'frontendMyTable')); public function frontendMyTable() { if (!...
0
votes
1answer
19 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
34 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
34 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
55 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
12 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
20 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
51 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
63 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 ...
0
votes
0answers
29 views

How to restric number of items per page using WP List Table

This is my code <?php global $wpdb; $per_page = 10; $columns = $this->get_columns(); $hidden = array(); $sortable = $this->get_sortable_columns(); $this->...
1
vote
0answers
35 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
0answers
31 views

add shortcode to custom post type list

im trying to generate a shortcode for every custom post type object i create and show that shortcode in the list of my posts. Elementor does this in its templates post type. How can i manually add ...
0
votes
2answers
60 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 ...
0
votes
0answers
15 views

WordPress Admin listing issue on custom post type on Safari

I am having a strange issue on showing the information on custom post type listing. When we list custom post type on iphone safari, there is a "Show more details" button to display more information ...
1
vote
1answer
37 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
27 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 ...
-1
votes
1answer
88 views

Create Add New button [closed]

How to create Add New button in WP_List_Table Class ?
0
votes
0answers
48 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
36 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
95 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
64 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 ...
1
vote
0answers
13 views

Accepting certain HTML tags in WP List Table column data

In my custom post type, 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 WP ...
0
votes
0answers
214 views

Use wp_list_table class with search and column sorting

How can I sort the columns inside a search result? I use the Wordpress-Class named wp_list_table and display a table, the columns can be sorted and the search functionality works also. But if I sort a ...
0
votes
0answers
72 views

Native admin table with search functionality: sorting by columns does not work

I display a WP_List_Table on a submenu_page and offer a search function, which works. However, if I sort by a column within a search result, all records are displayed again. I really don't know why ...
1
vote
0answers
37 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
57 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
140 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
0answers
69 views

Custom WP_List_Table - Reorder doesnt work and displaying username instead of id after query

I've tried the custom WP_List_Table example from the given example and I've encountered 2 issues: The re-order doesnt work: I can the see the requests in the URL of 'orderby' & 'order' but the ...
0
votes
1answer
40 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
68 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 ...
-2
votes
1answer
85 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
65 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
40 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 ...
0
votes
1answer
781 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
217 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
385 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 ...
1
vote
2answers
463 views

Show post in table front end

I want to create a table show all post, I use WP_query to get all iformatio and create table template to list my post. But my problem is only one post inside the table.. I want to include all in table....
0
votes
0answers
304 views

Different style for specific rows 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. The iteration of the columns for each row ...
0
votes
1answer
191 views

Ajax Category add doesn't update the list table custom column

I added a custom column to the manage categories admin page. The code is generalized because is more specific in my case, but the meaning is the same function mytheme_custom_column( $columns ) { ...
0
votes
1answer
172 views

Is the 'parse_query' filter still valid to change filtered content on admin list view?

there a really well answered question about custom filters: Adding a Taxonomy Filter to Admin List for a Custom Post Type? but is seems that 'parse_query' filter is not suitable anymore to change ...
1
vote
0answers
273 views

How to add custom classes to admin list table default rows or columns?

I usually add columns to admin tables for various tasks. This time I'd like to keep defaults but add classes to them. Is it possible in some way? I took a look to available filters and to the ...
0
votes
1answer
742 views

How to handle my row actions on a custom list table in the admin section

I have set up a plugin that because of the amount of data being used I set up a custom table and have extended the WP_List_Table class. I know that is not recommended, but Custom Post Types just won't ...
0
votes
1answer
2k views

Add search bar to Custom Database Table in Wordpress Dashboard

I have built a custom table within the WordPress database. From there I have put together a plugin which creates a dashboard page allowing you to view the various rows within the database by extending ...
0
votes
1answer
484 views

WP_List_Table default orderby is numeric

I display a custom table using the WP_List_Table class. Everything works, but I want the default orderby to be numeric (by ID). If it is by string it works. this is the function: private function ...
2
votes
1answer
4k views

WP_list_table bulk_action get edit and delete

I am really apparently not getting documentation about this. Even other stack exchanges about it do not really get it clear to me. I think it's because I just do not get how this works. So I am ...
0
votes
1answer
314 views

Add acf field in title (admin table)

I want to add an ACF field in my post title, only on admin table (not in the title field stored in database), and only for a specific Custom Post Type. Some of my posts have the same name, so it will ...
1
vote
0answers
193 views

Customize WP_List_Table inside admin panel

I need to make some changes exactly inside the WordPress panel. More specifically on a page that lists a specific post list. I need to add a custom search field with a specific field. I need also to ...
1
vote
1answer
661 views

WP_List_Table bulk actions notice & warning

I have own class which extends WP_List_Table class and everything works just fine but bulk actions have some issue. They performs well (delete the row in the table, change state of the item etc.) ...
1
vote
0answers
196 views

Problems with WP_List_Table and hooks

I'd like to use the WP_List_Table in my plugin, so I followed the guide of WP-Engineer to create the WP_List_Table. His version of the code is available on GitHub: https://gist.github.com/Latz/...