워드프레스에서 홈페이지(최신 글을 표시하도록 설정한 경우), 검색 페이지, 아카이브 페이지(카테고리 페이지 등)에 표시되는 글 개수를 달리 설정하고 싶은 경우 'pre_get_posts' 액션을 사용하면 됩니다.function custom_posts_per_page($query) { if (is_home()) { // 블로그 페이지 $query->set('posts_per_page', 8); } if (is_search()) { // 검색 페이지 $query->set('posts_per_page', -1); } if (is_archive()) { // 아카이브 페이지 $query->set('posts_per_page', 25); } //endif } //function //this adds the fun..