本文整理匯總了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 -->