The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
1answer
501 views

Plugin API for easy admin list table generation, handling & exporting of MySQL tables?

I'm aware of the WP_List_Table class (which has helped tremendously as it stands). However, I'm hunting for something even more capable - some form of API whereby you could simply 'register' a MySQL ...
10
votes
1answer
681 views

How do I make an HTML table from a database table?

is there a built-in wordpress function to make the HTML or should I use plain-old PHP?
8
votes
1answer
3k views

How are bulk actions handled in custom list table classes?

I'm working on a custom data table to display in the WordPress dashboard. The table populates from a database table I built in a plugin. I've been using the provided WordPress Custom List Table ...
6
votes
4answers
3k 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) { ...
4
votes
1answer
492 views

Why does my custom taxonomy show a total count across all post types

I have created a custom taxonomy 'season' I have 3 custom post types which I want to use this taxonomy. These are Races Galleries Competitors Now, when I view the totals within the taxonomy ...
4
votes
1answer
1k views

Searching users with WP_List_Table plug-in

I am trying to devlope a plugin that will search and return my users so I can edit some other metatdata that belongs to them. I have been using the plug-in listed on the Codex as my starting point. I ...
3
votes
2answers
213 views

List Table API - Safe to use?

Just curious what developers think about extending the WP_List_Table class for use on plug-ins. I am working on a plug-in that will show a list of users (ID, name, email) then pull data from another ...
3
votes
2answers
1k views

How-to implement admin Ajax inside an admin WP_List_Table?

I am new to WordPress if someone will help me I will be very appreciate. There is parameter ajax "true" but in docs. wasn't said how to implement Ajax using WP_List_Table Class? parent::__construct( ...
3
votes
2answers
691 views

Sort custom post type list table by display name of a user id stored as post meta value

I have a custom post type named domicile. Each post (domicile) has an owner (not the author). Owners are users with a custom role. I store the user id as a post meta value (dmb_owner) for the domicile ...
3
votes
1answer
1k views

WP List Table custom quick edit box - post meta data missing and columns change on submit

I have extended class WP_List_Table to create a custom sortable table of posts along with a quick edit box with custom meta boxes. The meta boxes populate and save but when I click submit the field ...
3
votes
1answer
383 views

Redirect after deleting post and keep track of pagination

I have a custom post list in the admin panel. This list is paginated, so this is it's url : wp-admin/edit.php?post_type=xxx, if I open the default page wp-admin/edit.php?post_type=xxx&paged=n, ...
2
votes
1answer
1k views

How to Remove Certain Screen Options and Table Columns from post type in wp_list_table?

On the page where we list all posts made: example.domain.com/wp-admin/edit.php There is a Screen Options tab in the upper right corner. Upon clicking this, a menu slides down. Contained within this ...
2
votes
1answer
606 views

How to use custom post type APIs, but use a different db table

We currently have a plugin that creates a new WP table, but it recreates the wheel when it comes to managing/updating data. It would be a good candidate for custom post types, but we don't want to ...
2
votes
3answers
2k views

How to handle sql with Custom List Table Example

I am using the Custom List Table Example plugin as a base to display entries from a table I created in the wordpress database... However I am having issues with this function function ...
2
votes
1answer
414 views

add_action 'manage_posts_custom_column' in a class [closed]

I think this may be more of a general php question but I am posting it here as it relates to a WP function. I am having some issues with an add_action on manage_posts_custom_column inside a class. ...
2
votes
1answer
56 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 ...
2
votes
0answers
726 views

How to stop _wpnonce and _wp_http_referer from appearing in URL

I am trying to develop a plug-in that has a search field and uses WP_List_Table. The plug-in is strictly for the backend and searches the users in the database and returns them along with some other ...
1
vote
2answers
122 views

How to implement WP_List_Table functionality for custom plugins (OR any substitution for wp_list_table plugin) for bulk action

In the WordPress codex, following is highlighted in red for WP List Table. "This class's access is marked as private. That means it is not intended for use by plugin and theme developers as it is ...
1
vote
1answer
56 views

Replacing the List table of a Post Type

Is there a way to replace the WP_List_Table object of a post type to display said post type differently on the Admin edit.php page?
1
vote
1answer
500 views

Row actions not showing? Why?

I have constructed a WP_List_Table that displays on a custom theme page that I have built. I am having some trouble getting the row actions to display, despite me reviewing all the possible info on ...
1
vote
1answer
1k 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 ...
1
vote
3answers
686 views

How to remove _wp_http_referer from URL when husing 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 is that when ...
1
vote
1answer
610 views

Image still attached to post even after removing it as featured image

I'm sorry if this is too noob of a question, but when I upload an image and set it as the featured image then later remove it (as featured image), the media list still shows it's "Attached to" the ...
1
vote
1answer
3k views

how to make custom bulk actions for a WP_List_Table (core class)

I am using the WP_List_Table class and I added the links for the actions like this: function get_bulk_actions() { $actions = array(); $actions['approv'] ='<a href="#">'.__( ...
1
vote
1answer
452 views

add_submenu_page function to show videos table

wondering if its possible to show the attachments admin list for videos by using a custom menu link? Any pointers welcome! D. add_action('admin_menu', 'mt_add_pages'); function mt_add_pages() { ...
1
vote
1answer
19 views

Redirection to taxonomy posts list after post submit.

I am able to redirect the user back to the edit.php admin page after they have successfully created/updated a post. However, is it possible to redirect them to the taxonomy term posts page? This ...
1
vote
1answer
54 views

Add content before/after admin post wp-list-table

I know there are two hooks to add content before and after a taxonomy wp-list-table. Is there an action to add content after the post type wp-list-table on the edit.php page? For $taxonomy List ...
1
vote
1answer
180 views

wp_list_table search box does not show

I'm using wordpress 3.8 and a custom class derived from WP_List_Table. Why is there no search form? My code in plugin class: function __construct() { ...
1
vote
1answer
180 views

Admin Posts List (edit.php) by post IDs

I'm writing a plugin that creates posts in bulk. I provide a way for the user to set certain parameters of the created posts beforehand. But it would be useful to use the WordPress default "All Posts" ...
1
vote
1answer
350 views

How to specify multiple search columns for wp list table search

I have working search for a created wp_list_table. But i like to know how i can search in more than one column My current my working search setup in a Visitor class //search something $searchcol= ...
1
vote
0answers
117 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 ...
1
vote
1answer
243 views

How do I limit the status options for bulk/quick edit to only Published and Draft?

For my custom post type, I only want to have "Published" and "Draft" as the available options in the bulk edit and quick edit screens, i.e. I tried hooking on to the filter ...
0
votes
1answer
201 views

How i add new link after Edit | Quick Edit | Trash | View in quick edit section

I want to add new link in custom post type . I have create a custom post type and i want to add new link after Edit | Quick Edit | Trash | View links like Edit | Quick Edit | Trash | View | PDF . How ...
0
votes
1answer
152 views

Retrieve only posts from a specific user in wp-admin/edit.php

I create a role and set capabilities for a group of user. $userdata = array( //something ); $uid = wp_insert_user($userdata); if(!empty($uid)){ $blogger = new WP_User($uid); //add role ...
0
votes
1answer
582 views

How to sort posts in a custom post type by title in ascending order by default?

So I am using a custom post type to create a listing of businesses. Each post made, contains information about each business. The title of each post is the name of the business. When I go to the menu ...
0
votes
2answers
329 views

wp_list_table bulk action button is not working - no submit

I have a custom wp_list_table to create my own table. Almost everything works perfect, but the bulk action button seems to be not working. It's proper displayed,but on click nothing happens. I think ...
0
votes
2answers
70 views

Possible to add a statement to a core file?

I would like to add one line to a wp core file. Basically on the 'edit.php' page, just right above <?php include('./admin-footer.php'); I would like to add an php include statement... ...
0
votes
1answer
412 views

Custom columns for taxonomy list table

I have the following code to add a new column to my taxonomy edit screen (edit-tags.php?taxonomy=book_place&post_type=books) function add_book_place_columns($columns){ $columns['foo'] = ...
0
votes
1answer
84 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 ...
0
votes
2answers
209 views

Default sort on admin columns with meta date hides draft posts with empty date value

I have a custom post type of 'gigs' and a metabox (using meta-box plugin ) with event start date and time saved like: 2013-11-29 20:30. If I save a draft with no time/date set then it shows up in ...
0
votes
1answer
636 views

How to add checkbox with multiple values in table?

Right now i changed from options table to my own table so things are getting difficult i have a checkbox its name is selection in table, so here is what i tried <input type="checkbox" ...
0
votes
1answer
672 views

Custom Table Column Sortable by Taxonomy Query

I am looking to add a custom column to a custom post type post listing table in the dashboard. I have read many questions / answers on WPSE, along with this article. Although, it seems like everyone ...
0
votes
1answer
116 views

Get user ID when action row link is clicked

I have added an action row link to users.php so that when its clicked it links to a list table. To generate the data for the clicked user in my custom list table, I need to capture the user ID. I ...
0
votes
1answer
212 views

wp_list_table multiple checkboxes

I have a custom class which extends wp_list_table and show list of posts with two checkboxes in each row (one which have post ID as value for determining which posts are to be processed and other to ...
0
votes
1answer
192 views

Custom Post Type or Custom Tables

I am in the process of writing a plugin that allows end-users to submit a form that includes customer information. Upon submission, I am notified that a new customer has submitted the request form. ...
0
votes
1answer
446 views

Query the links Database

Hi I'm trying to convert from a "example" wp_list_table that displays an array of data on the same page, to a "real life" table the pulls data from the database. I have the code setup to where I just ...
0
votes
1answer
97 views

How to create a master without relying on posts table

Just I want to create the Project master, there I'll maintain the fields like 'Project type', 'Project Category' and 'Project name'. I've created the table in DB. I thought it is easy to achieve in ...
0
votes
1answer
81 views

Strange font-style / font-weight on CPT list columns screen

As you can see below, for some reason the "Author" column displays extremely strange (like non-anti aliased) in Chrome. I added the snippet from the dev tools bar to show that I can't see any ...
0
votes
1answer
28 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
0answers
39 views

Using WP_list_table with search_box only works with ?s=searchterm as first argument?

I am using WP_list_table and extended it with a search_box, but I notice the search box doesn't work always. If I load page a do search it works. But when I load the page and use one off the table ...