-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathattachment.php
More file actions
27 lines (25 loc) · 870 Bytes
/
attachment.php
File metadata and controls
27 lines (25 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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();