StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 10-22-2012, 01:50 PM
jough jough is offline
Registered User
 
Join Date: Oct 2012
Posts: 1
Default 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.
  #2  
Old 10-23-2012, 08:08 AM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

use the genesis_custom_loop() function. You can pass the same arguments for that as WP_Query()
__________________
Nick "Fred and/or George Weasley" Croft
Designs by Nick the Geek
@Nick_theGeek on Twitter

Make web design easier, get FireBug for FireFox

Want to learn more about Genesis? Check out my Genesis Explained Series

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Add New Post" Error [Single Post Template] NOT DISPLAYING idxstudios General Discussion 7 10-03-2009 07:39 PM
Blog Post vs. Property Listing Single Post Template? nordie General Discussion 5 04-04-2009 06:58 PM


All times are GMT -5. The time now is 05:21 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.