Skip Navigation

[Résolu] view of cpt – but with one line per specific custom field

This support ticket is created Il y a 4 années et 7 mois. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 0 réponses, has 1 voix.

Last updated by Ido Angel Il y a 4 années et 7 mois.

Assisted by: Luo Yang.

Auteur
Publications
#1329177

hey,

I have a cpt of "orders".
each order has custom fields with order date, order id, ordering name.
each order has other custom fields of "products" ordered.

Basically, a table view would give me a list of orders.
But - I am trying to get the view to show me a separate line in the table for each "product". something like:

order 111 | 1/1/2019 | bill clinton | apples
order 111 | 1/1/2019 | bill clinton | oranges
order 222 | 12/11/2019 | barak obama | apples
order 222 | 12/11/2019 | barak obama | bannanas
order 333| 4/8/2019 | donald trump | bannanas

i know that if the "products" were not custom fields but a separate cpt, that would be possible (i would create a view of products with relationship to "orders"). but they are not :/
i can't get my head around a possible solution.

any ideas?

thx!

Ido

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.