forked from wpbrasil/odin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-custom_type.php
35 lines (35 loc) · 1.93 KB
/
single-custom_type.php
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
<?php
/**
* Sample single for Custom Post Type
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<div class="entry-meta">
<span class="sep"><?php _e( 'Por ', 'odin' ); ?></span>
<span class="author vcard">
<a class="url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( __( 'Ver todos os posts de ', 'odin' ) . get_the_author() ); ?>" rel="author"><?php echo get_the_author(); ?></a>
</span>
<span class="sep"> <?php _e( '| Publicado em', 'odin' ); ?> </span>
<time class="entry-date" datetime="<?php echo get_the_date( 'c' ); ?>"><?php echo get_the_date(); ?></time>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Páginas:', 'odin' ) . '</span>', 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<span><?php _e( 'Esse post foi publicado em ', 'odin' ); the_category( ', ' ); ?></span>
<?php the_tags( '<span> ' . __( 'e marcado ', 'odin' ), ', ', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article>
<?php comments_template( '', true ); ?>
<?php endwhile; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>