How to have a custom field with a drop down and a choice of images for events?
-
Hi,
I am aware that custom attributes exist for this plugin. I don’t think these do what I need.
I need to be able to have a custom field for events. This custom field needs to be able to have a drop down with a choice of 6 images. Then the site user needs to be able to select one of these 6 images and for their choice to be displayed on the event category page. I think this goes in taxonomy-event-categories.php I believe. Any guidance with be really appreciated!
My code so far, that doesn’t work:
$latest_cpt = get_posts("post_type=event"); foreach ( $latest_cpt as $cpt_post ) { $theidone =$cpt_post->ID; $this_post_id = $theidone; //get_the_ID(); $key_2_value = get_post_meta( $this_post_id, 'custom_select', true ); if( ! empty( $key_2_value )) { $thisisworking = $key_2_value ; } // echo $key_2_value; } // END OF NEW CATEGORY SYSTEM ?> <div id="indent"> <span style="font-size:0.2em"> <h2><?php echo $EM_Category->output('#_CATEGORYNAME'); ?></h2> </span> <?php echo $EM_Category->output('#_CATEGORYNOTES'); ?></p> <p> <?php //echo $EM_Category->output('#_CATEGORYALLEVENTS'); ?> </p> <?php echo EM_Events::Output( array('format'=> $key_2_value ' <li> <br />
I have only included a bit of the code I have in taxonomy-event-categories, as the rest is not related to this part. Any help would be really appreciated!
- The topic ‘How to have a custom field with a drop down and a choice of images for events?’ is closed to new replies.