Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
2answers
845 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 ...
2
votes
1answer
768 views

custom_list_table edit/delete bulk actions

so... this is a brand new chapter for me, i've googled for a solution and found loads but nothing working for me unfortunately. function column_title($item){ $actions = array( '...
1
vote
1answer
37 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 ...
1
vote
1answer
246 views

Modify users.php query with multiple taxonomies

I've successfully created 3 taxonomies attached to the user object, using the registered_taxonomy and update_count functions of this code - https://gist.github.com/portfola/10750784#file-user-...
0
votes
1answer
21 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
59 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
1answer
470 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 ...
0
votes
1answer
145 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
125 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 ...
0
votes
1answer
585 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
855 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', ...
0
votes
1answer
2k views

WP_list_table prepare_items()

I create custom WP_list_table with side form like (adding new category form), but when i submit that form wp_list_table doesn't refresh. When I once again refresh page information appears.I use ...
0
votes
1answer
1k views

Add custom column to post list table

I have a custom post type called Book and I want to add the publisher and book author custom columns in the edit page. I also want to fetch a specific value from each fields (I created two fields ...
0
votes
1answer
388 views

Get the selected posts IDs to use in bulk edit AJAX call

The WordPress codex for bulk_edit_custom_box, along with this bulk edit example use the following piece of JavaScript to create an array of selected post IDs to send with the AJAX call that updates ...
0
votes
1answer
2k views

Using WP_List_Table and search_box(): How to Paginate the Found Search Results When Sending by Method «Post»?

I am using a custom WP_List_Table-Class in order to display a custom table with hotels in the dashboard. I can skip through the pages with the pagination on the top right as expected. The search form ...
0
votes
1answer
348 views

Process bulk actions with POST method - WP_List_Table

I want to avoid to execute the bulk action again if someone reloads the page accidentally. If the bulk actions are processed with method POST a warning will be launched at least. Could be this ...
0
votes
1answer
649 views

Using wp_list_table how to trigger update function “inline”?

Ok, i have used wp_list_table to read data from a custom db table and i like to be able to update the database table by clicking the correspondig cell. Defaults are 0 and when clicked the value is set ...
-2
votes
1answer
54 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?
1
vote
0answers
5 views

How to handle custom wp list table bulk actions

I'm using the wp_list_table class for my plugins and still wondering how to handle bulk actions out of the class file as best. I found here that you should do it like this: So the flow is like this: ...
1
vote
0answers
7 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 ...
1
vote
0answers
32 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 ...
1
vote
0answers
235 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 ...
1
vote
0answers
182 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
0answers
153 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
0answers
235 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....
1
vote
0answers
69 views

Re use the list table for a custom post type on another page

i've got a custom post type which is 'ai1ec_event'. So i have a "All events" page which has a Wp_List_Table with all my events and my customization to that table. Is there a way to draw the same list ...
1
vote
0answers
138 views

Form element deleted from first row of WP_Lists_Table

I was trying to add a small input into the posts columns and in the markup that looks like it is working just fine. Using the standard add_filter( 'manage_posts_columns', 'kia_post_columns', 20 ); ...
1
vote
0answers
531 views

upgraded to wp 4.0 - getting convert_to_screen() errors with WP_List_Table

I upgraded my wordpress to 4.0 any my plugin which has a class that extends from WP_List_Table is now throwing this error [30-Sep-2014 21:40:55 UTC] PHP Fatal error: Call to undefined function ...
1
vote
0answers
1k views

WP List Table in custom post type

I want to use WP_List_Table class on a custom post type to create a whole new admin panel (the original one will exist, but I want to have several others with specific filters and criteria set upon ...
1
vote
0answers
183 views

How to store options in an array

I am creating a custom table to display selected options for a page called "Testimonials". The user will enter their options on a "manage testimonial settings" page, and then those options will ...
0
votes
0answers
50 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
18 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 ...
0
votes
0answers
24 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
131 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
0answers
211 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
0answers
299 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
207 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
0answers
166 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
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
0answers
107 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
0answers
153 views

`bulk_edit_custom_box` mess the input fields

I'm trying to create a bulk-edit plugin. Here is how Wordpress builk edit form looks by default: Than I add the following code: add_action( 'bulk_edit_custom_box', 'my_bulk_edit_custom_box', 10, 2 );...
0
votes
0answers
72 views

What is wrong with assigning values to a WP_List_Table class?

I was trying to fix a use of the Wordpress list with 4.3 update, when I noticed some odd behavior when subclassing the list class. As a minimal example: class Another_List_Table extends WP_List_Table ...
0
votes
0answers
893 views

Wordpress crashes when I click add new plugin

I recently uninstalled the plugin SEO Facebook Comments Since then when I click on add new plugin I get this error, Warning: require_once(D:\Dropbox\htdocs\bcu/wp-admin/includes/class-wp-plugin-...
0
votes
0answers
255 views

Wordpress admin WP_table_list show incorrectly

As the image above, my custom wp_list_table didn't show correctly. Code as below <?php if ( !class_exists( 'V2OMLVG_Video_Table' ) ) { class V2OMLVG_Video_Table extends WP_List_Table { ...
0
votes
0answers
2k views

Change column of row action (Quick Edit) links in WP_List_Table

Is it possible to move the "Edit | Quick Edit | Trash", etc... links (A/K/A "Quick Edit links") from a table generated by a custom post type registration into a different column other than the "Title" ...