In this article, you will learn How to get custom field on single event page. The event custom fields data is stored in WordPress meta, and you can access them using the get_post_meta function. Please check the following code.
Get custom field on single event page
1 2 3 |
|
Fields configuration
You also need the Fields configuration
1 2 3 4 5 6 |
|
Having both $fields and $data, you can print all the fields (or your desired fields) in the output. Check the following code.
1 2 3 4 5 6 7 8 9 10 11 12 13
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|