Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'template_include', 'template_comment_paginated' );
- function template_comment_paginated( $template )
- {
- if ( (int) get_query_var( 'cpage' ) > 0 &&
- false !== ( $_template = str_replace( '.php', '-paged.php', $template ) ) &&
- file_exists( $_template ) )
- {
- return $_template;
- }
- return $template;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement