![plugins - Show a different number of posts per page depending on context (e.g., homepage, search, archive) - WordPress Development Stack Exchange plugins - Show a different number of posts per page depending on context (e.g., homepage, search, archive) - WordPress Development Stack Exchange](https://i.stack.imgur.com/csv2y.png)
plugins - Show a different number of posts per page depending on context (e.g., homepage, search, archive) - WordPress Development Stack Exchange
![102 Change Posts per page count | Change posts per page on archive | Advanced WordPress Theme - YouTube 102 Change Posts per page count | Change posts per page on archive | Advanced WordPress Theme - YouTube](https://i.ytimg.com/vi/7IDywBa9GjU/maxresdefault.jpg?sqp=-oaymwEmCIAKENAF8quKqQMa8AEB-AH-CYAC0AWKAgwIABABGH8gFShuMA8=&rs=AOn4CLCuLgWzZa4n9kYaknMefZIcO9a3UA)
102 Change Posts per page count | Change posts per page on archive | Advanced WordPress Theme - YouTube
![Getting the posts in WordPress by customizing the query with the pre_get_posts hook. | by Prasana | Timeless | Medium Getting the posts in WordPress by customizing the query with the pre_get_posts hook. | by Prasana | Timeless | Medium](https://miro.medium.com/max/1400/1*BB9MpbS1ZfF8neGXVZqfMw.png)