[SOLVED] Pagination with Custom Post types, and Custom Page template
I am having trouble getting pagination to show up for my custom post type, even though the settings are properly set in the Atahualpa control pages.
I have created a custom post type called "reviews". In order to display all the content I wanted, I also created a reviews custom page template in the theme folder based upon Atahualpa's index.php, but using an alternative WP_Query. Although I have pagination set to appear in Atahualpa, and it does appear on standard posts, but not on my custom post type page. I do have the appropriate hooks in my page template: Code:
bfa_next_previous_page_links('Bottom'); |
I'd have to see the complete file to give you any help.
|
Sorry for the length of this... And thank you for any help that you can offer. As you can see, all that is changed is that I replaced the bfa_post_kicker() to the bfa_post_footer() function calls with a reference to the template part associated with the post type, and hooked in a custom Query...
All the other Atahualpa functions are working swimmingly on this page, and the multiple posts (standard post type) have the of the next/previous links appearing properly. More information that I discovered: I do get page navigation for "< Newer" only if I manually go to /reviews/page/2/ by inserting previous_posts_link(), but though there are also "Older >" custom post types, this nav element is not showing up. Code:
<?php |
Figured it out myself. I had renamed the query variable $loop, and Atahualpa expects it to be $wp-query.
|
All times are GMT -6. The time now is 01:16 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.