Problem with PHP custom field in WordPress Shortcode

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]

<div class="date">

<div class="month">%start{M}%</div>

<div class="day">%start{j}%</div>


<div class="venue">

<h2 style="margin-bottom:-40px!important; padding-bottom:0;">%event_venue%</h2>

<br/>%event_venue_address%<br/>%event_venue_country%, %event_venue_postcode%


<div class="city"><h2>%event_venue_city%</h2></div>

<div class="tickets">

<h2><a href="#" target="_blank">Tickets</a></h2>




Please let me know if you can help with this. Thank you.

Compétences : PHP, WordPress

en voir plus : it field, get help with wordpress, wordpress the events calendar, shortcode, custom post type, custom field, custom post type post template, custom post type template, wordpress shortcode, wordpress display custom post type, display day wordpress calendar, custom field post wordpress, class custom php, display field, wordpress custom field date, wordpress field type, 2014 calendar template, wordpress custom post template, custom php calendar, wordpress custom field

Concernant l'employeur :
( 50 commentaires ) Glasgow, United Kingdom

Nº du projet : #5880408

Décerné à:


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

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(37 Commentaires)

5 freelance font une offre moyenne de $24 pour ce travail


Hello, I can do this project. Please consider. Thank you

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(12 Commentaires)

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

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(17 Commentaires)

I have 3 years experience in web developing using wordpress.I have sound knowledge in php, jquery, javascript,css and html. I am ready to do this task. Pls check my previous work and hire me sir.I have completed 40 wor Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(5 Commentaires)

Ready to start work immediately... [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] [login to view URL] http Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(0 Commentaires)