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
WordPress Tips
You've landed on the archives page for posts filed under the WordPress Tips category.
Here you'll find useful tips and tutorials to help solve common problems and build a better WordPress site.
Add Comment Form Shortcode Between Content Area Text
This PHP code enables you to add a small comment form within the content area of a post or page. You could also use the shortcode this
Show User Count Using Count_Users
The code snippets in this tutorial enable you to display a count of all users. You can choose from using a custom function with
Load Special Template For One Specific Single Custom Post Type
Regardless of the name of your custom post type, you can load a special template which only displays on one single post when using custom
Use One Archive Template for All Custom Post Type Archives
If you have created multiple custom post types, you can use the same archive-cpt.php template. By default, you don't need to create a
Show Posts by Post Title in Alphabetical Order for Custom Post Type Archive
Here's an example which assumes you have 2 custom post types created , one name portfolio and the other community. The code simply