custom query to show invoices by client id
I’m trying to make a page with a custom query, showing only the invoices of a specific client/id.
make a new query for the custom post type is easy, but how can I add some parameters to show only the invoices of a specific client?
I know that the wp-invoice data is stored in a hidden custom field for each post (_wpiu_invoice_meta), and I could make a query using the args “meta_value”/”meta_query”, but how to make a query that check a key of the custom field array?
- The topic ‘custom query to show invoices by client id’ is closed to new replies.