Post

How to change the number of posts displayed on category pages in WordPress

To change the number of posts displayed on category pages in WordPress, you can use the pre_get_posts action hook to modify the posts_per_page property of the query. Add the following code snippet to your theme’s functions.php file: In your WordPress admin dashboard, go to “Appearance” > “Theme Editor.” In the right sidebar, locate and click…