本文整理匯總了PHP中woo_pagenav函數的典型用法代碼示例。如果您正苦於以下問題:PHP woo_pagenav函數的具體用法?PHP woo_pagenav怎麽用?PHP woo_pagenav使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了woo_pagenav函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: woostore_after_content
function woostore_after_content()
{
?>
<?php
if (is_search() && is_post_type_archive()) {
add_filter('woo_pagination_args', 'woocommerceframework_add_search_fragment', 10);
}
?>
<?php
woo_pagenav();
?>
</div><!-- /#main -->
<?php
woo_main_after();
?>
</div><!-- /#content -->
<?php
woo_content_after();
?>
<?php
}
示例2: _e
}
} else {
?>
<div class="post">
<p><?php
_e('Sorry, no posts matched your criteria.', 'woothemes');
?>
</p>
</div><!-- /.post -->
<?php
}
?>
<?php
woo_pagenav();
?>
</div><!-- /#main -->
<?php
woo_main_after();
?>
<?php
get_sidebar();
?>
</div><!-- /#col-full -->
</div><!-- /#content -->
<?php
示例3: canvas_commerce_pagination
function canvas_commerce_pagination()
{
if (is_search() && is_post_type_archive()) {
add_filter('woo_pagination_args', 'woocommerceframework_add_search_fragment', 10);
}
woo_pagenav();
}
示例4: esc_attr
continue;
}
$column_count_1++;
$column_count_2++;
$column_count_3++;
?>
<div class="threecol-one<?php
if ($column_count_1 > 2) {
echo esc_attr(' last');
$column_count_1 = 0;
}
?>
">
<?php
woo_get_template_part('content', 'magazine-grid');
?>
</div><!--/.block-->
<?php
if ($column_count_1 == 0) {
?>
<div class="fix"></div><?php
}
// End IF Statement
}
// End WHILE Loop
} else {
get_template_part('content', 'noposts');
}
woo_pagenav($query);
wp_reset_query();
add_action('woo_post_inside_before', 'woo_display_post_image', 10);
示例5: get_query_var
// Fix for the WordPress 3.0 "paged" bug.
$paged = 1;
if (get_query_var('paged')) {
$paged = get_query_var('paged');
}
if (get_query_var('page')) {
$paged = get_query_var('page');
}
$paged = intval($paged);
$query_args = array('post_type' => 'post', 'paged' => $paged);
$query_args = apply_filters('woo_blog_template_query_args', $query_args);
$new_query = new WP_Query($query_args);
$original_query = $wp_query;
$wp_query = $new_query;
if (have_posts()) {
$count = 0;
?>
<div class="fix"></div>
<?php
while (have_posts()) {
the_post();
$count++;
woo_get_template_part('content', get_post_type());
}
} else {
get_template_part('content', 'noposts');
}
$wp_query = $original_query;
woo_loop_after();
woo_pagenav($new_query);
unset($new_query);