Skip to content

Commit ba5e8d6

Browse files
author
cristianraiber
committed
fixeds #255
1 parent ce94130 commit ba5e8d6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

attachment.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
endif;
1717
?>
1818
<div id="primary" class="col-md-8 mb-xs-24 <?php echo esc_attr( $layout_class ); ?>">
19-
<?php
20-
while ( have_posts() ) :
21-
the_post();
22-
get_template_part( 'template-parts/content', 'attachment' );
19+
<?php
20+
while ( have_posts() ) :
21+
the_post();
22+
get_template_part( 'template-parts/content', 'attachment' );
2323

24-
// If comments are open or we have at least one comment, load up the comment template.
25-
if ( comments_open() || get_comments_number() ) :
26-
comments_template();
27-
endif;
24+
// If comments are open or we have at least one comment, load up the comment template.
25+
if ( comments_open() || get_comments_number() ) :
26+
comments_template();
27+
endif;
2828

2929
endwhile; // End of the loop.
3030
?>

template-parts/content-attachment.php

+2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
<div class="entry-content">
3030
<?php
3131
$image = wp_get_attachment_image( get_the_ID(), 'full' );
32+
3233
echo wp_kses_post( $image );
34+
echo the_content();
3335

3436
$link_pages_args = array(
3537
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'shapely' ),

0 commit comments

Comments
 (0)