• I have been trying to create an admin-list-table-style table in my wp application to manage a list of customer orders: allowing customers to see their list of orders and act upon them.

    I followed various tutorials and examples of wp-list-table class, but the result was not very good. Two specific (major) issues:

    1. The table does not show any “sorting triangles”, by which users can toggle the sorting directions, on the column which are specified as sortable. The the example above, they are Column 1 and 2.
    2. Two buttons are displayed (unexpectedly) in each cell of the first column. Now labels, no urls. I looked at the (Html) source code of the page, they are labeled as “show more details” buttons.

    I am looking for advice regarding my use of wp-list-table class for my purpose:

    1. Is it practical to customize wp-list-table class for the non-admin use? If the answer is NO, what is equivalent of wp-list-table class for non-admin context?
    2. If it is Ok to use this class, how do I make the “sorting triangles” to show up, and how to hide these two “show more details” buttons in the first column?

    Any advice/suggestions are greatly appreciated.

    John Zhu
    [email protected]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi John,

    As far as i know about WP list table, its a built in wp class use to list information in wp admin with searching, sorting and pagination, i think its not supposed to be used on front end instead, you can use Datatables though , it is jquery plugin which handles all searching, sorting and pagination, you can also define on which columns you need sorting, check it once.
    Regards,
    Swayam

    Thread Starter zhuzh1

    (@zhuzh1)

    Swayam, does Datatables allows row actions? I looked its page, but it was not clear to me.
    Thanks
    John

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using wp-list-table class in non-admin context’ is closed to new replies.