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.
Leave a Reply
You must be logged in to post a comment.