I want to use many of the shortcodes via php code. e.g [events_calendar]
I want to use many of the shortcodes via php code. e.g [events_calendar]
An example of how to use it
<?php echo do_shortcode('[events_list limit="10"]
<ul class="event">
<li>
<img class="thumb" src=#_EVENTIMAGEURL />
<div class="details">
<h3>#_EVENTNAME</h3>
<p>#_EVENTDATES</p>
<p>#_EVENTTIMES</p>
</div>
<div class="description">
#_EVENTNOTES
</div>
<div class="description-toggle">See description</div>
</li>
</ul>
[/events_list]'); ?>Thanks! @dullejohn
thanks for the code dude....
yup, that's how! alternatively, skip shortcodes and go to the 'source'
EM_Events::output(array('limit'=>10, 'format'=>'placeholders etc.'));
you may want to add the ul tags outside of both the shortcode example above and this one.
You must log in to post.