12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php get_header() ?>
- <!-- https://codex.wordpress.org/Custom_Headers -->
- <img class="img-responsive" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />
- <div class="conteudo">
- <main>
-
- <section class="meio">
- <div class="container">
- <div class="row">
- <div class="noticias col-md-9">
-
- <?php
- the_archive_title('<h1 class="titulo-arquivo">','</h1>');
- the_archive_description();
- // se tiver algum post publicado, executar
- if(have_posts()) :
- /// enquanto houver algum post, chame o post de determinada maneira
- while (have_posts()) : the_post();
-
- ?>
- <!-- funcao que funciona como um include do php -->
- <?php get_template_part('content', 'archive'); ?>
- <!-- get_template_part('content', 'pagina' - se tiver um aquivo content-pagina ira ser chamado -->
-
- <?php
- endwhile;
- ?>
- <div class="paginacao text-left">
- <?php next_posts_link('<< Mais Antigos'); ?>
- </div>
- <div class="paginacao text-right">
- <?php previous_posts_link('Mais Novos >>'); ?>
- </div>
- <?php
- else:
- ?>
- <p>Não tem nada ainda pra mostrar</p>
- <?php
- endif;
- ?>
- </div>
- <aside class="barra-lateral col-md-3">
- <?php get_sidebar('blog');?>
- </aside>
- </div>
- </div>
- </section>
- </main>
- </div>
- <?php get_footer() ?>
|