+
+
+ '' . esc_html__( 'Previous:', 'brpp-prawo-podatki' ) . ' %title',
+ 'next_text' => '' . esc_html__( 'Next:', 'brpp-prawo-podatki' ) . ' %title',
+ )
+ );
+
+ if ( comments_open() || get_comments_number() ) :
+ comments_template();
+ endif;
+ }
+
+ endwhile; // End of the loop.
+ ?>
+
+
+
'' . esc_html__( 'Previous:', 'brpp-prawo-podatki' ) . ' %title',
- 'next_text' => '' . esc_html__( 'Next:', 'brpp-prawo-podatki' ) . ' %title',
- )
+ $args = array(
+ 'post_type' => 'post',
+ 'posts_per_page' => 3,
+ 'orderby' => 'date',
+ 'order' => 'DESC',
+ 'post__not_in' => array(get_the_ID()),
);
+ $other_posts = new WP_Query($args);
- // If comments are open or we have at least one comment, load up the comment template.
- if ( comments_open() || get_comments_number() ) :
- comments_template();
- endif;
-
- endwhile; // End of the loop.
+ if ($other_posts->have_posts()) :
?>
+
+
+
+
+
Zobacz też inne wpisy
+
+
+ have_posts()) : $other_posts->the_post();
+ $image = get_the_post_thumbnail_url(get_the_ID(), 'medium');
+ $title = get_the_title();
+ $link = get_permalink();
+
+ get_template_part(
+ 'inc/template-article-card', null, [
+ 'image' => $image,
+ 'title' => $title,
+ 'link' => $link
+ ]
+ );
+ endwhile;
+ wp_reset_postdata();
+ ?>
+
+
+
+
+
+