[Plugin: The Events Calendar] Trouble Echoing Certain Meta Values
-
I am using the following function:
// get post meta function get_meta($key) { $meta = get_post_meta(get_the_ID(), $key, true); if($meta) { return $meta; } else { return false; } }
To echo meta values of event posts like so:
<ul class="meta-event"> <li><strong>On:</strong> <?php the_field('_EventStartDate'); ?></li> <li class="last"><strong>Price:</strong> £<?php the_field('_EventCost'); ?></li> <li><strong>Location:</strong> <?php the_field('_VenueCity'); ?></li> <li class="last"><a class="more" href="<?php echo get_permalink(); ?>">Find Out More / Enquire ?</a></li> </ul>
However the value for ‘_VenueCity’ returns nothing! Even though I can see it in my database.
Does anyone know what could be wrong? I really can’t see what the problem is as I echo meta values like this all the time.
I’ve even tried with the ‘the_field()’ function from ACF but with no joy.
https://www.ads-software.com/extend/plugins/the-events-calendar/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: The Events Calendar] Trouble Echoing Certain Meta Values’ is closed to new replies.