#StackBounty: #custom-post-types #custom-field #advanced-custom-fields #sort How to sort a table of custom posts by column containing c…

Bounty: 50

I have a custom post type called laptop with custom fields such as CPU, OS, RAM etc. creatied using the Advanced Custom Fields plugin.

I’m displaying a table of laptops, where the table header is a row of custom fields, and each following row is a laptop name and it’s custom field values in each of the corresponding column cells.

I want to be able to sort the table by clicking on the table TH cell containing the custom field name.

I’ve been pointed to meta query clauses by ACF support, but I’m out of my depth with those.

I’d really appreciate some help in generating URLs to wrap around the the custom field name in each TH element.


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.