1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
<?php get_header(); ?> <div class="container mt-5"> <section id="main" class="my-3"> <div class="row"> <div id="post-<?php the_ID(); ?>" <?php post_class('col-lg-8 mx-auto px-3'); ?> > <?php // Start the loop. while ( have_posts() ) : the_post(); if (in_category('ranking')): the_post_thumbnail( 'mascara', array( 'class' => 'float-left img mr-4 mb-3' ) ); ?><h2 class="single-title"><?php the_title(); ?></h2> <?php else : ?> <h2 class="single-title"><?php the_title(); ?></h2><?php the_post_thumbnail( 'full-page', array( 'class' => 'd-block img-fluid mx-auto mb-3' ) ); ?> <?php endif; ?> <?php the_content(); ?> <?php if(has_tag()): ?> <div class="tags-holder border-top border-bottom py-3"><?php the_tags( 'Tagi: ',' > ' ); ?></div> <?php endif; ?> <?php if (has_category('ranking')): ?> <div class="my-3"><a href="<?php echo home_url(); ?>" class="back-to-home" ><i class="fas fa-chevron-left"></i> Wróć do rankingu</a></div> <?php endif; ?> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : ?> <div class="border-top w-100 my-3"></div> <?php comments_template(); endif; // End the loop. endwhile; ?> </div> <div class="col-lg-4 pl-0 mb-3 border-left"> <?php get_sidebar(); ?> </div> </div> </section> </div> <?php get_footer(); ?> |
1 |
<?php echo get_the_term_list( get_the_ID(), 'mascara_tag', '<span class="tag">', '|', '</span>' ); ?> |
1 2 3 4 |
<?php $cena = get_post_meta($post->ID, "rank", true); ?> <?php if ( $cena != null ) : ?> <span class="rank">Pozycja w rankingu: <?php echo $cena; ?>#</span> <?php endif; ?> |