WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display image if posts custom field has specific value (2 posts)

  1. sm_rasmy
    Member
    Posted 2 years ago #

    i made a drop down list in front end posting
    and the users chose from multiple values
    so i want for each value show diffident image instead of
    the text
    i use this code to show the value in my single

    <?php
    
      $mykey_values = get_post_custom_values('original_comics');
      foreach ( $mykey_values as $key => $value ) {
        echo " $value ('original_comics')<br />"; 
    
      }
    
    ?>

    and the values is yes , no
    how i can display image with this values and no text

  2. sm_rasmy
    Member
    Posted 2 years ago #

    moderator pls close this topic as solved
    i figured it out

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.