Problem with PHP custom field in WordPress Shortcode
Budget $10-30 USD
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>
<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>
<div class="city"><h2>%event_venue_city%</h2></div>
<div class="tickets">
<h2><a href="#" target="_blank">Tickets</a></h2>
</div>
[/eo_events]');
?>
Please let me know if you can help with this. Thank you.
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
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
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
Ready to start work immediately... [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] [url removed, login to view] http Plus