@@ -1,59 +1,50 @@
<?php get_header(); ?>
<div class="page open">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="background-image" style="background-image: url('<?= get_field( 'preview_photo' )['url'] ?>');"></div>
<div class="page open">

<div class="content">
<?php
// Set variables
$title = get_the_title();
$subtitle = get_field('preview_subtitle');
$date = get_the_date();
$author = get_the_author();
$image = get_field('preview_photo');
$categories = get_the_category();
?>
<article id="post-<?php the_ID(); ?>">

<div class="cover">
<div class="image" style="background-image: url('<?= $image['url']; ?>');"></div>
<div class="inside">
<div class="wrapper">
<p class="category"><?= get_the_category_list(', ') ?></p>
<p class="title">
<?= $title ?>
</p>
<?php if ( !empty( $subtitle ) ) : ?>
<p class="subtitle"><?= $subtitle ?></p>;
<?php endif; ?>
<p class="date"><?php printf( '%1$s, %2$s', $date, $author ) ?></p>
</div>
<div class="cover">
<div class="inside">
<div class="wrapper">
<p class="category"><?= get_the_category_list(', ') ?></p>
<p class="title">
<?= get_the_title() ?>
</p>
<?php
$subtitle = get_field('preview_subtitle');
if ( !empty( $subtitle ) ) :
?>
<p class="subtitle"><?= $subtitle ?></p>
<?php endif; ?>
<p class="date"><?php printf( '%1$s, %2$s', get_the_date(), get_the_author() ) ?></p>
</div>
</div>
<div class="all">
<div class="wrapper">
</div>

<div class="all">
<div class="wrapper">
<div class="content">
<?php the_content(); ?>

</div>
<div class="content-comments">
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>
</div><!-- .entry-content -->
<div class="section back">
<a href="#" title="" data-section-target="0">
<img src="<?= get_template_directory_uri() ?>/assets/button/arrow_up/normal.svg" alt="Powrót do góry" />
</a>
</div>
</div><!-- .entry-content -->

<div class="wrapper">
<?php
if ( comments_open() || get_comments_number() ) {
comments_template();
}
?>
</div>

</article><!-- #post-## -->
<div class="section back">
<a href="#" title="" data-section-target="0">
<img src="<?= get_template_directory_uri() ?>/assets/button/arrow_up/normal.svg" alt="Logotyp Więcej niż LEK" />
</a>

</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>

Large diffs are not rendered by default.