<?php get_header(); ?> <article> <header> <h3><?php echo get_the_title(); ?></h3> <?php if ( has_post_thumbnail() ) { ?> <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?php the_title_attribute(); ?>"> <?php } ?> </header> <section> <?php the_post(); ?> <?php the_content(); ?> </section> <section> <?php $tags = get_the_tags( get_the_ID() ); foreach( $tags as $tag ) { $tag_link = esc_url( get_tag_link( $tag->term_id ) ); $tag_name = esc_html( $tag->name ); echo "<a href='". $tag_link ."'><span class='tag'>". $tag_name ."</span></a>"; } ?> </section> <br> <br> <footer class="article-detail"> <div class="byl-container row"> <section class="social-share-bloc col col-md-3 col-sm-3 col-xs-12"> <?php get_template_part('template-parts/social-share'); ?> </section> <section class="pub-info col col-md-9 col-sm-9 col-xs-12 byl-txt-right"> <?php get_template_part('template-parts/pub-info'); ?> </section> </div> </footer> </article> <br> <?php get_footer(); ?>