How can I incorporate `get_post_meta` into events-list.php?
-
I need to incorporate
get_post_meta
into events-list.php, so that it displays the post_meta into my events-list. Here is get_post_meta code:<?php $this_post_id = get_the_ID(); $key_2_value = get_post_meta( $this_post_id, 'custom_select', true ); if( ! empty( $key_2_value )) { echo $EM_Event->output( '{no_category_class} '. $key_2_value.' {/no_category_class}'); ;} ?>
Code from events-list.php:
$args = apply_filters('em_content_events_args', $args); if( get_option('dbem_css_evlist') ) echo "<div class='css-events-list'>"; echo 'TEST '.EM_Events::Output( array('format'=> '<a href="#_EVENTURL" border=0>why doesnt this work list of categories </a> <B>#_EVENTLINK</B><br/>#_EVENTDATES #_EVENTTIMES<BR/><i>#_LOCATIONNAME, #_LOCATIONADDRESS, #_LOCATIONTOWN, #_EVENTNAME, #_EVENTIMAGE </i><br/><a href="#_EVENTURL">Details & map</a><HR>', 'limit'=>20, 'pagination'=>1)); if( get_option('dbem_css_evlist') ) echo "</div>";
How can I incorporate
get_post_meta
code into events-list.php code?I would really appreciate a bit of guidance from someone, really stuck on this. Thank-you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How can I incorporate `get_post_meta` into events-list.php?’ is closed to new replies.