__( 'Previous page', 'air-conditioning-services' ), 'next_text' => __( 'Next page', 'air-conditioning-services' ), 'before_page_number' => '' . __( 'Page', 'air-conditioning-services' ) . ' ', ) ); } else if($air_conditioning_services_pagination_type == 'numbered'){ the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'air-conditioning-services' ), 'next_text' => __( 'Next page', 'air-conditioning-services' ), 'before_page_number' => '' . __( 'Page', 'air-conditioning-services' ) . ' ', ) ); } } add_action( 'air_conditioning_services_blog_pagination', 'air_conditioning_services_render_blog_pagination', 10 ); /** * Pagination for single post. */ function air_conditioning_services_render_single_post_pagination() { $air_conditioning_services_single_post_pagination_type = get_theme_mod( 'air_conditioning_services_single_post_pagination_type', 'default' ); if ($air_conditioning_services_single_post_pagination_type == 'default') { the_post_navigation( array( 'prev_text' => '' . __( 'Previous Post', 'air-conditioning-services' ) . '', 'next_text' => '' . __( 'Next Post', 'air-conditioning-services' ) . ' ', ) ); } else if($air_conditioning_services_single_post_pagination_type == 'post-name'){ the_post_navigation( array( 'prev_text' => '' . __( 'Previous Post', 'air-conditioning-services' ) . '%title', 'next_text' => '' . __( 'Next Post', 'air-conditioning-services' ) . '%title', ) ); } } add_action( 'air_conditioning_services_single_post_pagination', 'air_conditioning_services_render_single_post_pagination', 10 );