Advertisement
eventsmanager

creating single-event.php

Jul 2nd, 2013
829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  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(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement