dimanche 29 novembre 2015

Wordpress - Own Plugin - Custom Table Search

I have created my own plugin in Wordpress. The plugin retrive data from the database and displays it in the Wordpress table.

Database table structure: (id, name, email, status)

I extend class WP_List_Table and I want to add search_box to my table. When I've added that and fill search input and click search button it's dupplicated (I have now two search_box form) and my search results displayed only in the first page, second generate results that not match to my search string.

How can I resolve this problem? - Don't show second search_box after click search button, - After click next page shows me a rest of search result instead records who don't match the search string

My plugin code:

index.php - http://ift.tt/1jr2hla
calss/config.php - http://ift.tt/1XoMUg1
class/recommend-list.php - http://ift.tt/1jr2hlc

PS. How can I change selected row status and update it in database. I have a few status string ('new', 'read', etc.) - maybe this status string be added by the admin panel (status taxonomy?)?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire