本文整理匯總了PHP中twentyeleven_content_nav函數的典型用法代碼示例。如果您正苦於以下問題:PHP twentyeleven_content_nav函數的具體用法?PHP twentyeleven_content_nav怎麽用?PHP twentyeleven_content_nav使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了twentyeleven_content_nav函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_template_part
?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to overload this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part('content', get_post_format());
?>
<?php
}
?>
<?php
twentyeleven_content_nav('nav-below');
?>
<?php
} else {
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header elifer9">
<h1 class="entry-title"><?php
_e('Nothing Found', 'twentyeleven');
?>
</h1>
</header><!-- .entry-header -->
<div class="entry-content">
示例2: get_header
get_header();
?>
<div id="primary">
<div id="content" role="main">
<?php
$ids = bei_instructions_query_filter();
$ids = array($ids);
$paged = get_query_var('paged') ? get_query_var('paged') : 0;
$bei_query = new WP_Query(array('post_type' => 'instructions', 'post__in' => $ids[0], 'paged' => $paged));
if ($bei_query->have_posts()) {
?>
<?php
twentyeleven_content_nav('nav-above');
?>
<?php
while ($bei_query->have_posts()) {
$bei_query->the_post();
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<header class="entry-header">