eventsmanager

creating single-event.php

Jul 2nd, 2013
640
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1. create file single-event.php in your theme (e.g. /wp-content/themes/Your Theme/single-event.php)
  2.  
  3. 2. copy these snippet
  4.  
  5. 3.
  6.  
  7. <?php get_header(); ?>
  8. <div id="primary">
  9. <div id="content" role="main">
  10. <?php
  11. global $post;
  12.  
  13. $EM_Event = em_get_event($post->ID, 'post_id');
  14. ?>
  15.  
  16. <header class="entry-header">
  17. <h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
  18. </header>
  19.  
  20. <div class="entry-content">
  21. <p><?php echo $EM_Event->output(get_option ( 'dbem_single_event_format')); ?></p>
  22. </div>
  23.  
  24. </div><!-- #content -->
  25. </div><!-- #primary -->
  26. <?php get_sidebar(); ?>
  27. <?php get_footer(); ?>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×