Return Post ID using query for meta_key and meta_value within an echo
-
I’m pretty sure that I have a syntax error or two preventing this from working as expected.
<?php echo get_the_post_thumbnail('. $query_posts('meta_key=PVC_Featured_Image&meta_value=1'); if (have_posts()) : while (have_posts()) : the_post(); $str = get_the_ID() ; echo $str; endwhile; else : echo 'Something else happens here'; endif; .'); ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Return Post ID using query for meta_key and meta_value within an echo’ is closed to new replies.