Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_custom_function( $query ) {
- if ( $query->is_home() && $query->is_main_query() && !is_admin() ) {
- //change query parameter here for home page
- }
- }
- add_action( 'pre_get_posts', 'my_custom_function' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement