A
A
Alex McOwkin2018-02-02 16:36:48
WordPress
Alex McOwkin, 2018-02-02 16:36:48

How to filter posts in WP_List_Table wordpress?

Hello.
almost figured out with WP_List_Table.
I write my own plugin. I want to make a similar table, like posts.
it remains to add filtering by date to your records from the database.
How to filter posts in wordpress?
5a74694310b7b066798367.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Nikolaev, 2018-02-02
@phpist85

Look towards the protected method extra_tablenav() . It's empty by default, but it's called automatically in display , and in this method you can echo out (simply and angrily, via echo) the markup with your filters.
Further, already in your function of pulling data from the table, make the necessary selections. Those. in the case of such filters, there is no ready-made function that can simply be called with some parameters, you need to add handles.

A
Alex McOwkin, 2018-02-02
@phpist85

yeah. thanks. so I thought. but hoped for the best =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question