get_post_meta array to list
-
Hello!
Sorry I’m still a newbie at coding but any help with the get_post_meta function would be appreciated!
I have several meta values assigned to a key named ‘skills’, I’m trying to arrange them in an unordered list however I can only seem to produce the following:
[“skill1″,”skill2″,”skill3”]
The code I’m using is below…I’ve scoured the forums and codex but I must be missing something – does anyone have a suggestion?
<?php $args = array( 'post_type' => 'candidate', 'posts_per_page' => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); the_title(); endwhile; ?> <?php echo get_post_meta(get_the_ID(), 'skills', 'false'); ?>
Thanks so much!!!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_post_meta array to list’ is closed to new replies.