How to add, where can I add wp navigation plugin script into the wordpress thesis theme.This is a common problem.Simply you can use thesis_hook_after_content
thesis hook functions to put this.
Add the following function into your custom_functions.php.You can find it /wp-content/themes/thesis/custom/custom_functions.php
1 2 3 4 5 6 7 8 |
function thesis_page_navi() { ?> <div class="wp-pagenavi"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div> <?php } |
How to Call to this function
1 |
add_action('thesis_hook_after_content', 'thesis_page_navi'); |
Full script is here.
1 2 3 4 5 6 7 8 9 10 |
function thesis_page_navi() { ?> <div class="wp-pagenavi"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div> <?php } //call to this function add_action('thesis_hook_after_content', 'thesis_page_navi'); |