Good morning
I realize that the Custom Post Add on plug in isn't an officially supported product (http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/) But the challenge lies in the support that;s seen from the author in resolving the issue I have. Thus, here's my post :)
I have a couple forms that are all based off of Post types and can get the Title, body, and tags to appear in a new post (yippie!) The issue lies in getting the custom post fields to appear in the body of the post. I can see them listed below the body of the post so I know that the information is being saved. I have been through a dozen or Wordpress.org pages on how to get the custom post fields to appear in the post. Some say to put the code in post.php file, some say the index.php, and yet another says functions.php. My question is two part...
1: Whats the php code that I need to enter to have the information from the fields brought into the post? Ive tried 3 or 4 different ones and most crash the site or make no difference.
3: With that code, what file do I need to add it to?
The Custom post types will be a combination of check boxes, drop downs, and website urls.
Thanks again for all your support! :)
**edit**
I found this code (which I haven't used yet) and was instructed to add it to functions.php. Is there a way to change it to be variable instead of the dedicated post types shown below?
add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
if ( is_home() )
$query->set( 'post_type', array( 'post', 'page', 'album', 'movie', 'quote', 'attachment' ) );
return $query;
}