Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying all single posts.
- *
- * @package metro-creativex
- */
- get_header(); ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php
- do_action('single_header');
- ?>Jméno: <?php the_field('nazev'); ?> <br />
- Místo konání: <?php the_field('misto_konani'); ?> <br />
- Datum akce: <?php the_field('datum_akce'); ?> <br />
- Popis: <?php the_field('popis'); ?> <br />
- Cena: <?php the_field('cena'); ?> <br />
- Obrázek: <?php the_field('obrazek'); <br />
- ?>
- </div><!--/topside-->
- <?php
- do_action('metro_customizr_single_header');
- ?>
- <div id="content">
- <div <?php post_class(); ?>>
- <?php
- $metro_creativex_posttitle = get_the_title();
- $metro_creativex_feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
- if(isset($metro_creativex_feat_image[0])):
- echo '<div class="post_img"><img src='.$metro_creativex_feat_image[0].' alt="'.$metro_creativex_posttitle.'"></div>';
- endif;
- the_content();
- wp_link_pages();
- edit_post_link( __('Edit post', 'metro-creativex'));
- ?>
- <div class="clearfix"></div>
- <?php
- if(has_tag()):
- echo '<div class="tags">';
- the_tags();
- echo '</div>';
- endif;
- ?>
- </div><!--/post-->
- <?php metro_creativex_pagination(); ?>
- <?php comments_template(); ?>
- </div><!-- /content -->
- <?php endwhile; ?>
- <?php do_action('metro_customizr_right_sidebar');?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement