how to echo/display the custom field value in specific custom field name?
I have tried this code:
?php query_posts(array( 'meta_key' = 'custom_cat', 'meta_value' = 'creative', 'post_type' = 'page' )); echo 'ul class="clearfix row"'; if ( have_posts() ) while ( have_posts() ) : the_post(); echo 'li class="col-md-4"'; the_title(); the_content(); echo 'i class="'.get_post_meta( get_the_ID(), "fa_icon", true ).'"/i'; echo '/li'; endwhile; echo '/ul'; wp_reset_query(); ?
to display the custom field value as a class name, but the value is not displaying. Please help me find the problem or solution to display the custom field value as class name. I'm having hard time to debug this codes because i'm not a programmer, i'm a designer, still in the process of exploring wordpress.
Topic get-the-id post-meta Wordpress
Category Web