-
Notifications
You must be signed in to change notification settings - Fork 16
/
single-custom_type.php
36 lines (25 loc) · 977 Bytes
/
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
36
<?php
/*
* Custom Post Type Archive Template
*
* This is the custom post type archive template. If you edit the custom post type name,
* you've got to change the name of this template to reflect that name change.
*
* For Example, if your custom post type call is "register_post_type( 'staff' )",
* then your template name should be archive-staff.php
*
* For more info: http://codex.wordpress.org/Post_Type_Templates
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap cf">
<main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">
<h1 class="archive-title h2"><?php post_type_archive_title(); ?></h1>
<?php // Edit the loop in /templates/archive-loop. Or roll your own. ?>
<?php get_template_part( 'templates/archive', 'loop'); ?>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>