StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   How To Render a Post using the Post Template? (http://www.studiopress.com/support/showthread.php?t=121738)

jough 10-22-2012 01:50 PM

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.

NicktheGeek 10-23-2012 08:08 AM

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.