![]() |
How To Render a Post using the Post Template?
I'm trying to make a single post "sticky" on the home page if a certain GET param is passed to the page.
I can grab the post data from the post ID, but once I have the post object, how do I pass it to the post template so that it renders like the other posts (including firing off the Genesis hooks we've set up for the display of every other post)? I can get the path of the single post template with the WordPress get_single_template() function, but I'm not sure how to pass in post content via Genesis so that it's rendered properly. |
use the genesis_custom_loop() function. You can pass the same arguments for that as WP_Query()
|
| All times are GMT -5. The time now is 03:31 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.