Hi,
Im utilizing wp_query to customize an archive page like so
PHP Code:
function _cpt_testimonials_menu() {
$args = array(
'post_type' => 'aero_testimonials',
'order' => 'ASC',
'posts_per_page' => '-1',
);
$tips = new WP_Query( $args );
if( $tips->have_posts() ):
echo '<p>';
while ( $tips->have_posts() ) : $tips->the_post();
echo '<h2>' . get_the_title() . '</h2>';
echo get_the_post_thumbnail();
echo genesis_do_post_content();
// echo '<a href="' . get_permalink() . '">' . get_the_post_thumbnail() . '</a>';
endwhile;
echo '</p>';
endif;
wp_reset_postdata();
}
I'm having a bit of trouble echoing out some custom metabox fields. I've tried
PHP Code:
echo customfieldID();
but can't get any output. I can get post content, thumbnail, title, and etc but no custom field. Any ideas?