Events Manager
[resolved] How to use 'Event Manager Shortcodes' plugin via the php code. (5 posts)

  1. Bhuvnesh Gupta
    Posted 3 years ago #

    I want to use many of the shortcodes via php code. e.g [events_calendar]


  2. dullejohn
    Posted 3 years ago #

    An example of how to use it

    <?php echo do_shortcode('[events_list limit="10"]
    <ul class="event">
    		<img class="thumb" src=#_EVENTIMAGEURL />
    		<div class="details">
    		<div class="description">
    		<div class="description-toggle">See description</div>
    [/events_list]'); ?>
  3. Bhuvnesh Gupta
    Posted 3 years ago #

    Thanks! @dullejohn

  4. ved88
    Posted 3 years ago #

    thanks for the code dude....

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic