Simply paste this PHP code at the end of your child themes functions.php file.
The code controls how many CPT items display per archive page. It adds previous and next page links after each archive page for custom post types
If you have published 18 single CPT pages, this code will create 3 paginated pages.
Change Your CPT Name in the code to the name you used to create a custom post type in your functions file.
To control how many single CPT entries display on each page, change the number 6 to suit your own requirements.
You could also modify this code for use on custom taxonomy type archive pages simply by changing the conditional tag from:
is_post_type_archive( 'Your CPT Name' )
to
is_tax( 'Your Taxonomy Name' )
This solution adds page navigation to a custom post type archive page assuming you have created your custom post type using this code in Genesis.
If you used any other code to register your CPT, you may need another solution.
I got it working after I changed the number of blogs under reading settings to match to my template settings. My goodness.
hahaha Good stuff Lex!
I added pagination with the following code
When I click them, url changes to …/vlogs/page/4/ no problem, but the pages stays the same. it always lists just the latest posts. Hmm…
This works for the standard loop. How do I add pagination to a custom loop.
remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop
add_action( 'genesis_loop', 'custom_do_grid_loop' ); // Add custom loop
And I have my loop working, but I don’t have pagination
Thank you.