Using Thesis, I created a page where I am using the thesis_home_loop to display teasers for posts of a specific category. I'm using wp_pagenavi, which works fine at the bottom of search results and archive pages, but not on the page of posts I have made. It displays the proper posts_per_page but the pagination only shows the one page. Where are my other pages?
Here are the hooks I'm using:
function the_stories_page() {
if (is_page('Stories')) {
$limit = get_option('posts_per_page');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('category_name=stories&posts_per_page=' . $limit . '&paged=' . $paged);
echo '<div id="content">';
thesis_home_loop();
echo '</div>';
}}
add_action('thesis_hook_content_box_bottom', 'the_stories_page');
function the_pagination() {
if (is_page('stories')) || is_archive() || is_search()){
echo '<div class="paginate">';
wp_pagenavi();
echo '</div>';
}}
add_action('thesis_hook_before_footer','the_pagination');
Any ideas?