Ready to get started?Download WordPress


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

  1. sm_rasmy
    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

      $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
    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


No tags yet.