• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Show Sticky Posts Only On Front Page

Assuming your home page reading settings are configured to display your latest posts in a paginated archive rather than a static page, you can use this PHP code in your child themes functions file to display your sticky posts on only.

If there’s no sticky posts, the default loop of posts are displayed.

To modify the loop on other archive page types, change the is_home conditional tag in the above code.

If your front page uses a front-page.php template with widget areas, you can use the Genesis Featured Posts widget settings to display only sticky posts.

Related Tutorials

  • Genesis Featured Posts Widget To Only Show Sticky Posts OR Exclude Them

pre_get_posts

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags