Using wp_list_table how to trigger update function “inline”?

ok not the most handsome solution but it works i transported the update function to update.php also wp-load.php $(“.col_visitor”).click(function(){ visitorID = $(this).attr(‘id’); //alert(‘testing ‘+visitorID); $.ajax({ url: ‘update.php’, data: {action: visitorID}, type: ‘post’, success: function(output) { //alert(output); window.location.reload(); //reload so we see the updated values } }); });//#end click

Create Table Failed Column Date DateType

Well, after looking at the other tables I had created successfully, only difference was the description column. Apparently WordPress or MySQL doesn’t like that as a column name and somehow has it reserved. So, after renaming it, the table was created fine. Hope this helps someone else in the same boat.

Show all post types in the same table of posts [duplicate]

Yes of course, if you set the query argument ‘post_type’ to ‘any’, it will retrieve any type except revisions and types with ‘exclude_from_search’ set to true. Example: $all_posts = get_posts( array( ‘post_type’ => ‘any’ ) ); Otherwise, if you don’t want ALL post types, just certain ones: $specific_posts = get_posts( array( ‘post_type’ => array( ‘movies’, … Read more

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

This issue I have also faced and suggestion the solution By adding this much javascript to update the pagination links using jquery by adding search in page links. if($(“#listing-tbl”).length) { if($(“#search-search-input”).length) { var search_string = $(“#search-search-input”).val(); if(search_string != “”) { $(“#listing-tbll .pagination-links a”).each(function() { this.href = this.href + “&s=” + search_string; }); } } }

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

After searching through WordPress core I found the following on lines 1051 – 1057 of wp-admin/includes/class-wp-posts-list-table.php if ( post_type_supports( $screen->post_type, ‘title’ ) ) : if ( $bulk ) : ?> <div id=”bulk-title-div”> <div id=”bulk-titles”></div> </div> <?php else : // $bulk ?> So, in order for the #bulk-titles element to be part of your admin list … Read more