Add navigation to your custom post type.
While working on this website itself I needed a solution to add navigation to my custom post types.. and following is the solution for that
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
$wp_query = new WP_Query(array('post_type' => 'portfolio',
'paged' => $paged,
'order' => 'ASC',
'posts_per_page' => 4)
while ($wp_query->have_posts()) : $wp_query->the_post();
/* your code here */
Let me know if this helps you.
Comments and Responses
Check out useful resources!
Slightly modded options framework [SMOF]
Are you theme developer? Now you can build your own custom theme options panel with this powerful options framework!
Advanced Custom Fields
Powerful fields for WordPress developers. Build advanced edit screens for your theme. A must have tool for theme developers. Use the Advanced Custom Fields plugin to take full control…