mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
27 lines
869 B
PHP
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();
|