I'm using the echo do_shortcode function to include an events calendar within a WP template. I need to display a custom field within the shortcode area, but can't get it to work. Below is my code. I need the custom field "tickets" to show in the a href="#" section (replacing the #).
The post is a custom post type called "event".
<?php echo do_shortcode('[eo_events]
<h2 style="margin-bottom:-40px!important; padding-bottom:0;">%event_venue%</h2>
<h2><a href="#" target="_blank">Tickets</a></h2>
Please let me know if you can help with this. Thank you.
Hi, you have good reviews so I'm just posting the code here in good faith. Inside the loop for the event post template, try adding this: <?php $link = get_post_meta(get_the_ID(), 'tickets', true); ?> and then modi Plus
5 freelance font une offre moyenne de $24 pour ce travail
let me do. Hello, I'm professional web developer and WordPress expert. I have more then 3years experience in web development and successfully build more then 100 dynamic, CMS, Blogs, eCommerce and static websit Plus