本文整理汇总了PHP中twentythirteen_paging_nav函数的典型用法代码示例。如果您正苦于以下问题:PHP twentythirteen_paging_nav函数的具体用法?PHP twentythirteen_paging_nav怎么用?PHP twentythirteen_paging_nav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了twentythirteen_paging_nav函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_template_part
?>
<?php
get_template_part('content', get_post_format());
?>
<?php
}
?>
<?php
} else {
?>
<?php
get_template_part('content', 'none');
?>
<?php
}
?>
</div>
</div><!-- #content -->
</div><!-- #primary -->
<?php
twentythirteen_paging_nav();
?>
<?php
get_sidebar();
get_footer();
示例2: array_merge
$args = array_merge($wp_query->query_vars, array('post_status' => array('future', 'publish'), 'paged' => $paged));
query_posts($args);
?>
<?php
while (have_posts()) {
the_post();
?>
<?php
get_template_part('content', get_post_type());
?>
<?php
}
?>
<?php
twentythirteen_paging_nav('agenda');
?>
<?php
} else {
?>
<?php
get_template_part('content', 'none');
?>
<?php
}
?>
</div><!-- #content -->
</div><!-- #primary -->
示例3: while
<?php
/* The loop */
?>
<?php
while (have_posts()) {
the_post();
?>
<?php
get_template_part('content', get_post_format());
?>
<?php
}
?>
<?php
twentythirteen_paging_nav('restitutions');
?>
<?php
} else {
?>
<?php
get_template_part('content', 'none');
?>
<?php
}
?>
</div><!-- #content -->
</div><!-- #primary -->
示例4: if
<?php
/*
* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<?php get_template_part( 'author-bio' ); ?>
<?php endif; ?>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentythirteen_paging_nav(); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
>>>>>>> b875702c9c06ab5012e52ff4337439b03918f453
<?php get_footer(); ?>
示例5: array_merge
$args = array_merge($wp_query->query_vars, array('post_status' => array('future', 'publish'), 'paged' => $paged));
query_posts($args);
?>
<?php
while (have_posts()) {
the_post();
?>
<?php
get_template_part('content', 'agenda');
?>
<?php
}
?>
<?php
twentythirteen_paging_nav('posts');
?>
<?php
} else {
?>
<?php
get_template_part('content', 'none');
?>
<?php
}
?>
</div><!-- #content -->
</div><!-- #primary -->