I would like to create a colour palette generator for my paint website. I would like to be able to insert both a "Colour Name" and a "Hex Code" for each colour of a specific product.
For Example:
"Wall Paint" would have a Single Line "Colour" Field that accepts multiple-instances.
Each entry would look like this: Blue, #88d0e8.
Add Another Instance: Orange, #f5983b
Add Another Instance: White, #ffffff
So Basically, each colour would have one entry containing two values separated by a comma.
I need to call the "Colour Name" and "Hex Code" separately as I'd like to add the "Hex Code" into CSS and I'd like to display the "Colour Name" on the front end.
I would prefer both values to be entered into the same field as each product will have many different colours and I'd like to avoid confusion.
I am trying to do as the documentation says as it seems to be exactly what I am looking for, but the "Post Relationship" part is not displaying the way the documentation suggests.
I understand that I may be doing things incorrectly, please view my screenshots and advise?
If you need more control of the returned posts you can create a query directly. This example returns all rooms that belong to the current property and will sort them by the description field.