Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

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

Add Custom Filter in WP List Table but data inside table from database

I create admin page name institutions in backend and then create extends WP_List_Table to show all data about institutions direct from separate table from wordpress db. I want to create a filter for ...
0
votes
1answer
16 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
16 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
32 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
32 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) { ...
0
votes
0answers
175 views

How to change primary column in \WP_List_Table?

I have data table column like this... [] | Building | Floor | Room number | Description | Price In my list table class, I was set get_primary_column_name() method to return room_num. The CSS class ...
0
votes
1answer
39 views

How to make custom column with link for individual user id in user list at wordpress

I want to make a column in user list page from admin panel. And the column value will appear with the link like user edit option or I want to make a link with edit, view user option. initially, I made ...
0
votes
0answers
30 views

How to show custom listing in WordPress admin side using wp_list_table using submenu

I have created custom WordPress plugin. I have stored post Id and user id, user id is based on meta_key in postmeta wordpress table. My stored meta key is custom_users in postmeta table. I have ...
1
vote
1answer
28 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
304 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
126 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
253 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 ...
0
votes
0answers
294 views

WP_List_Table to display subscribers including profile edit

Hoping the community can assist ,I have made a few WP_List_Tables in the past however have always been tapping into a custom database table. Now I want to tap into the WordPress user and user meta. ...
0
votes
0answers
92 views

WP list table custom column post button

I'm new in wordpress. I'm testing some tutorial plugins list table it works, but I want to add new custom column wih a post button action, how can I implement that? My code is the same one on the link ...
2
votes
2answers
307 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
177 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
123 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
109 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
201 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
0answers
468 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
287 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 ...
3
votes
1answer
3k 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
245 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
172 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 ...
0
votes
1answer
465 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
138 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/...
1
vote
2answers
753 views

URL Redirect and Bulk Actions in wp_list_table

I am using the Custom List Table Example plugin as a basis to create my own custom list table. Everything is great, except one thorny point. When I am processing bulk actions via the ...
0
votes
1answer
32 views

List all users and current week entries

Im looking for a simple code to list all users with the role spectator and if they have made an entry in the current week enter "yes" and if not "no"
0
votes
0answers
386 views

WP_List_Table edit button doesnt work

my wp_list_table function is below. Edit button doesnt work. Anybody can tell me what is wrong ? public static function get_customers( $per_page = 5, $page_number = 1 ) { global $wpdb; $sql ...
0
votes
1answer
64 views

Sorting columns with aliases

I am new to WP_LIST_TABLE and working on someone's else code. I have a couple of joins my query which you SELECT * FROM wp_o_students st INNER JOIN wp_o_schools sc ON st.school_id = sc.school_id ...
5
votes
4answers
833 views

Replace Dashes Before Title in Page List

I want to replace the dashes before the page title in the dashboard page list. For each hierarchy below the first, a dash is prepended (as seen in the screenshot below): It seems that the filter ...
0
votes
0answers
157 views

Empty filter select dropdowns for custom taxonomies for built-in posts admin

I have two custom taxonomies that are available for built-in posts (as well as some custom post types). However, when I go to wp-admin/edit.php, in the bulk actions/filters row there are two empty &...
0
votes
1answer
332 views

Best Alternative to WP List Table

According to Codex they are not recommended uss WP List Table. So what is the best alternative to WP List Table?
2
votes
1answer
458 views

Removing sorting option for columns on the post lists page

By default the title column on a post/page/custom post type page in WordPress admin area is sortable. How can I disable the sorting option? I think the question is clear but just to extend it a ...
1
vote
0answers
209 views

WP_Terms_List_Table Quick Edit not working

I have built a custom taxonomy for which I have built a custom page that lists the terms associated with it. Everything seems to be working fine so far except the Quick Edit, which simply does nothing....
0
votes
1answer
992 views

“Add New” button on custom post type grid

I've created a custom page in my wp-admin panel to show my custom model in a grid. It extends wp_list_table, and the grid works great with sorting and pagination. I'm having trouble adding an "Add New"...
0
votes
0answers
20 views

Custom redirection when managing users in admin

I have implemented a customized WP_List_Table that displays a list of users with custom roles. I also managed to exclude those users in the Users admin page, so these can be managed separately. Now, ...
0
votes
1answer
201 views

Can I simplify in function column_default use of queries

In below function column_default I have several cases doing almost the same query. Is it possible to use only 1 query for all the 3 cases? And if so how do I use it in below example? Thanks for ...
0
votes
0answers
99 views

How to hook into admin javascript/ajax actions?

I've got a problem. I'm adding custom columns and contents to term lists on admin term/taxonomy creation/editing page. I'm using the classic 'manage_edit-{$taxonomy}columns' and 'manage{$taxonomy}...
0
votes
1answer
800 views

WP_LIST_TABLE bulk action

I created a class extend WP_List_Table and created method for bulk actions like this : function get_bulk_actions() { $actions = array( 'synchronize' => 'Synchronize', ...
2
votes
3answers
11k views

Is there a way to list posts of only a certain category

I want to add a new menu point to post that shows posts of a certain category. Adding a new page is easy if it is just a new post type. But I want to only show posts with a specific category and when ...
1
vote
1answer
860 views

Wp List Table - wpdb results are not displaying

I am a newbie i wordpress dev. So i wanna display a results, taken from custom wordpress database table. So I have written this: if( ! class_exists( 'WP_List_Table' ) ) { require_once( ...
0
votes
1answer
696 views

Programatically inserted posts not showing in Posts Table

I'm trying to insert a custom post through a form. It's a brief post, most content are custom meta fields updated with add_post_meta. So far, post inserting is working fine, except for a detail. This ...
4
votes
1answer
2k views

How to implement WP_List_Table? WP_List_Table giving array instead of a value in listing table

I am trying to implement WP_List_Table for my plugin. I have gone through this tutorial and using its sample plugin. I have installed this plugin and just changed table name and done slightly ...
0
votes
1answer
83 views

Adding user filter - Not updating data in URL

What I am trying to do I am trying to add a filter option by adding a dropdown menu that i have hooked onto restrict_manage_users, so i can filter users by a specific meta value. My problem When i ...
2
votes
1answer
3k views

WP_list_table add custom row action

I have been following the following guide: step by step guide to wp list table however i can't figure out where should i define my action: duplicate in the code. I want to add a link to simply ...
0
votes
1answer
102 views

Odd behaviour for the update button when displaying a WP_List_Table

I am currently trying to add a WP_List_Table to a metabox in the edit page of a custom type. The code is currently class Post_Table extends WP_List_Table { public function __construct() ...
7
votes
1answer
11k views

How to create Custom filter options in wp_list_table?

I used wp_list_table class to create my custom table in the backend. It's working fine. Now, I want to add filters like in the below image. Here is my existing code to render admin table with my ...