Is there a bit of PHP I can use to grab the sticky blog post (there will only ever be one) to drop into my homepage template file?
-
What have you tried? Have you tried a custom WP_Query for sticky posts? Please edit your question to include your "homepage template", and whatever code you've tried.– Chip BennettNov 18, 2014 at 18:22
1 Answer
$sticky = get_option( 'sticky_posts' );
$query = new WP_Query( 'p=' . $sticky[0] );