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

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems