-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingle.php
More file actions
40 lines (24 loc) · 1.06 KB
/
single.php
File metadata and controls
40 lines (24 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
<!--
PLANTILLA PARA ENTRADAS. (SINGLE.PHP)
-->
<?php get_header(); ?> <!-- HEADER.PHP -->
<div id="contenido"> <!-- INICIO del contenido principal. -->
<section>
<article>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Enlace permanente a <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small> Publicado por <?php the_author_posts_link() ?> el <?php the_time('j/m/Y') ?>. Categoría: <?php the_category(', '); ?> </small><br>
<div class="post">
<?php the_content(); ?> <!-- Muestra el contenido de la entrada. -->
</div>
<div class="comentarios">
<?php comments_template(); ?> <!-- Muestra la seccion de comentarios y el formulario. -->
</div>
<?php endwhile; ?>
<?php endif; ?>
</article>
</section>
<?php get_sidebar()?> <!-- SIDEBAR.PHP -->
</div> <!-- FIN del contenido principal. -->
<?php get_footer(); ?> <!-- FOOTER.PHP -->