Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @package metro-creativex
  6.  */
  7. get_header(); ?>
  8.  
  9.     <?php  while ( have_posts() ) : the_post(); ?>
  10.             <?php
  11.                 do_action('single_header');
  12.             ?>Jméno: <?php the_field('nazev'); ?> <br />
  13.               Místo konání: <?php the_field('misto_konani'); ?> <br />
  14.               Datum akce: <?php the_field('datum_akce'); ?> <br />
  15.               Popis: <?php the_field('popis'); ?> <br />
  16.               Cena: <?php the_field('cena'); ?> <br />
  17.               Obrázek: <?php the_field('obrazek');  <br />
  18.             ?>
  19.         </div><!--/topside-->
  20.         <?php
  21.             do_action('metro_customizr_single_header');
  22.         ?>
  23.         <div id="content">
  24.             <div <?php post_class(); ?>>
  25.                 <?php
  26.                     $metro_creativex_posttitle = get_the_title();
  27.                     $metro_creativex_feat_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
  28.                     if(isset($metro_creativex_feat_image[0])):
  29.                         echo '<div class="post_img"><img src='.$metro_creativex_feat_image[0].' alt="'.$metro_creativex_posttitle.'"></div>';
  30.                     endif; 
  31.                
  32.                     the_content();
  33.                     wp_link_pages();
  34.                     edit_post_link( __('Edit post', 'metro-creativex'));
  35.                 ?>
  36.                 <div class="clearfix"></div>
  37.                 <?php
  38.                     if(has_tag()):
  39.                         echo '<div class="tags">';
  40.                         the_tags();
  41.                         echo '</div>';
  42.                     endif; 
  43.                 ?>
  44.             </div><!--/post-->
  45.             <?php metro_creativex_pagination(); ?>
  46.             <?php comments_template(); ?>
  47.         </div><!-- /content -->
  48.     <?php endwhile; ?>
  49.     <?php do_action('metro_customizr_right_sidebar');?>
  50. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement