This PHP code sets the post per page only on the first page of the home page archive.
All other paginated pages like page 2,3,4 and so on will display the number of posts set in the Reading settings native to WordPress.
Using a code editor and FTP, simply copy and paste the following code to the end of your child themes functions file.
Leave a Reply
You must be logged in to post a comment.