Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function create_post_type()
- {
- register_post_type('episode',
- array(
- 'labels' => array(
- 'name' => __('Episodi'),
- 'singular_name' => __('Episodio')
- ),
- 'public' => true,
- 'has_archive' => true,
- 'taxonomies' => array('category')
- )
- );
- }
- <?php get_template_part('templates/page', 'header'); ?>
- <?php echo single_cat_title(); ?>
- <?php if (!have_posts()) : ?>
- <div class="alert alert-warning">
- <?php _e('Sorry, no results were found.', 'sage'); ?>
- </div>
- <?php endif; ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement