Assuming your home page reading settings are configured to display your latest posts in a paginated archive rather than a static page, you
pre_get_posts
The pre_get_posts hook enables you to modify whats included in any archive page type loop before it runs making it one of the most efficient ways to alter any original query before WP_Query has been set up.
Only Show Specific Pages or Posts On Home Page
This code enables you to select which single pages you want displayed on the front page of your WordPress site. It excludes all posts and
Include Single Pages With Posts In Home Page Loop
This code laters the main query for the home page loop to include single pages with posts. Add the PHP code to the end of your child
Set Posts Per Page For Any Archive Type
Use this code in your child themes functions file with a conditional tag to target a specific archive page type to set posts per
Return Search Results After A Specific Date
If you want to exclude older posts from your search results, you can using pre_get_posts. The following code uses the date_query from
Add Custom Field To Genesis Loop
This code enables you to add custom field content like text, HTML & images to the Genesis loop. You can use the code 2 ways: The