Can some one let me know How I can render the Custom Post Type Meta Fields (Meta-boxes). I have a Custom Post Type Called "News" and I successfully added a Metabox to my Custom Post Type called "News Info" which is suppose to store :
A TextField = News Resource
A Select option = News Type
A check box
I can retrieve the Custom post Type "News"content using a custom Loop as:
<?php $args = array( 'post_type' => 'news'); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); echo '<div class="content">'; the_content(); echo '</div>'; endwhile; ?>
But I have no idea how to get the associated meta fields to "news" posts? trust me I Google this a lot but couldn't find any solution all of them just tried to render the Metabox on the admin page but no sample for presenting on the page! Can you please let me know how I can get access and render the data on the page using the wp-query loop?