-
-
Save braddalton/5fe6cce9e2b071223e06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'pre_get_posts', 'home_items' ); | |
function home_items( $query ) { | |
if( $query->is_main_query() && !is_admin() && is_home( ) ) { | |
$query->set( 'posts_per_page', '3' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment