admin管理员组文章数量:1327261
I have a custom post type orders
and multiple custom columns. I've added the custom columns with the manage_orders_posts_columns
hook and registered the columns as sortable with this hook: manage_edit-orders_sortable_columns
.
My issue is that some of the column values are not simply meta fields; the info displayed in these columns is generated based on multiple conditions related to custom functionality.
So my question is: is there any way to make a custom column sortable other than using the pre_get_posts
hook and modifying the query?
本文标签: How to sort custom columns for custom post type without meta query and pregetposts
版权声明:本文标题:How to sort custom columns for custom post type without meta query and pre_get_posts? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742210691a2433655.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论