wordpress/php-fpm/wordpress_files/themes/bootstrap-basic4/attachment.php
2020-05-22 01:40:23 +00:00

27 lines
869 B
PHP

<?php
/**
* The attachment template.
*
* Use for display the attachment from full post content. Such as image, video, audio, any media or attachment file.
*
* @package bootstrap-basic4
*/
// begins template. -------------------------------------------------------------------------
get_header();
?>
<main id="main" class="col-12 site-main" role="main">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
get_template_part('template-parts/content', 'attachment');
}// endwhile;
} else {
get_template_part('template-parts/section', 'no-results');
}// endif;
?>
</main>
<?php
get_footer();