-
Notifications
You must be signed in to change notification settings - Fork 1
/
post-type-template.php
61 lines (46 loc) · 1.73 KB
/
post-type-template.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* @package BVS
* @subpackage Classic_Theme
*/
get_header();
?>
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="middle">
<?php //the_date('','<h2>','</h2>'); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<div class="storycontent">
<?php //the_content(__('(more...)')); ?>
</div>
<div class="childPages">
<ul>
<?php
global $id;
$post_type = get_post_type( $id );
$args = array(
'post_type' => $post_type,
'post_parent' => $id,
'order' => 'ASC',
'post_status' => 'publish' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<div class="childPages_storycontent"><?php the_content(__('(more...)')); ?></div>
<?php endforeach; ?>
</ul>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php //comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
</div>
<?php //comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php //posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?>
</div>
<?php get_footer( "test" );//get_footer(); ?>
</div>