__( 'Previous page', 'boutique-designer-shop' ), 'next_text' => __( 'Next page', 'boutique-designer-shop' ), 'before_page_number' => '' . __( 'Page', 'boutique-designer-shop' ) . ' ', ) ); } else if($boutique_designer_shop_pagination_type == 'numbered'){ the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'boutique-designer-shop' ), 'next_text' => __( 'Next page', 'boutique-designer-shop' ), 'before_page_number' => '' . __( 'Page', 'boutique-designer-shop' ) . ' ', ) ); } } add_action( 'boutique_designer_shop_blog_pagination', 'boutique_designer_shop_render_blog_pagination', 10 ); /** * Pagination for single post. */ function boutique_designer_shop_render_single_post_pagination() { $boutique_designer_shop_single_post_pagination_type = get_theme_mod( 'boutique_designer_shop_single_post_pagination_type', 'default' ); if ($boutique_designer_shop_single_post_pagination_type == 'default') { the_post_navigation( array( 'prev_text' => '' . __( 'Previous Post', 'boutique-designer-shop' ) . '', 'next_text' => '' . __( 'Next Post', 'boutique-designer-shop' ) . ' ', ) ); } else if($boutique_designer_shop_single_post_pagination_type == 'post-name'){ the_post_navigation( array( 'prev_text' => '' . __( 'Previous Post', 'boutique-designer-shop' ) . '%title', 'next_text' => '' . __( 'Next Post', 'boutique-designer-shop' ) . '%title', ) ); } } add_action( 'boutique_designer_shop_single_post_pagination', 'boutique_designer_shop_render_single_post_pagination', 10 );