Using wp-list-table class in non-admin context
-
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:
- 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.
- 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:
- 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?
- 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)
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.