Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $product_view=isset($_GET['product_view']) ? $_GET['product_view'] : 'grid';
- echo paginate_links(array(
- 'base' => add_query_arg('product_view', $product_view),
- 'format' => '',
- 'prev_text' => __('«'),
- 'next_text' => __('»'),
- 'total' => ceil($total / $items_per_page),
- 'current' => $page,
- 'add_args' => array(
- 'category' => 'fruit',
- 'color' => 'red'
- )
- ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement