/** * Display the venue list for the event post. * * @since 1.3.0 * * @param string $separator Optional, default is empty string. Separator for between the venues. * @param string $parents Optional. How to display the parents. * @param int $post_id Optional. Post ID to retrieve categories. */ function am_the_venue($separator = '', $parents = '', $post_id = false) { echo am_get_the_venue_list($separator, $parents, $post_id); }
?> <?php // Display the event table ?> <ul> <?php // The Loop if ($the_query->have_posts()) { while ($the_query->have_posts()) { $the_query->the_post(); $postId = $post->ID; echo '<h4 class="title"><a href="' . get_permalink() . '"> ' . get_the_title() . '</a></h4> '; echo '<strong><p>'; am_the_startdate('d/m Y H:i', ' Tidspunkt: ', '</p></strong>'); echo '<p>Sted: ' . am_get_the_venue_list(',', 'multiple') . '</p>'; echo '<br>'; } } ?> </ul> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'twentytwelve'), 'after' => '</div>')); ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php edit_post_link(__('Edit', 'twentytwelve'), '<span class="edit-link">', '</span>');