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.

0
votes
2answers
41 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
12 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
17 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
18 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
23 views

Create Add New button [on hold]

How to create Add New button in WP_List_Table Class ?
0
votes
0answers
33 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
1answer
664 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 ...
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 ...
2
votes
1answer
801 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( '...
2
votes
3answers
11k views

wp_list_tables bulk actions

How to fire on bulk actions inside of an extended WP_List_Table. I have been adding the following bulk actions to may table's select box but on Apply won't really happens anything here are how I ...
0
votes
0answers
29 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
2answers
904 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 ...
5
votes
2answers
5k views

How do I create links at the top of WP_List_table?

I am trying to create links like the ones in the post tab (see image below). I created my WP_List_table but I am not sure how to create those links or how to get them to show a different db query. I ...
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
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
895 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', ...
1
vote
1answer
47 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
49 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 ...
0
votes
1answer
644 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 ...
1
vote
0answers
10 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
159 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
1answer
397 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
561 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
2answers
413 views

remove $_GET-parameter from WP_List_Table::tablenav

I'm using URL parameters as actions links within a custom WP_List_Table for users like so: http://domain.com/wp-admin/users.php?page=account-expiration-status&do_action_xyz&email=email%...
0
votes
0answers
147 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
1answer
53 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
29 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
34 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
24 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
0answers
38 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
26 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
25 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
6answers
6k views

How to remove _wp_http_referer from URL when using WP_List_table?

I have built a plugin that displays a table using the WP_List_Table class. The table displays entries on which it's possible to apply a filter and some bulk actions. The problem is that when I click ...
-2
votes
1answer
64 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
42 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
234 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
64 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 ...
1
vote
1answer
34 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 ...
26
votes
4answers
22k views

Change order of custom columns for edit panels

When you register a custom column like so: //Register thumbnail column for au-gallery type add_filter('manage_edit-au-gallery_columns', 'thumbnail_column'); function thumbnail_column($columns) { $...
0
votes
1answer
2k views

Get categories list with category name in custom WP_List_Table class

Im building a plugin and i made custom wp_list_table class to suit my needs and display items with native wordpress look. The problem is that i can't get to list categories with categories names. I ...
8
votes
3answers
17k views

How to Change Order of Posts in Admin?

How can I change the order of posts in the admin dashboard, so they display alphabetically according to title, rather than latest first?
3
votes
2answers
2k views

WP_List_Table Inside Metabox Not Working on Submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called service which is registered to a custom post type called office. The table columns contain input ...
4
votes
1answer
184 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
320 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
3answers
833 views

Wp_List_Table not responsive

im using the wp_list_table class on my backend theme, to show some informations that i have saved on database, but there is a lot of informations and i want to make it responsive, show/hide some ...
1
vote
1answer
937 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( ...
4
votes
4answers
963 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 ...
1
vote
2answers
392 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
231 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
163 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 ) { ...