Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other [WordPress] Multiple images through Custom Fields

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45790
    luchid
    Participant

    Hello, I want to attach few images through custom fields.
    I read this article (https://css-tricks.com/forums/discussion/1206/wordpress-posts-image/p1 “”) and I was able to show images, but I want to show them without adding the source in my code for each image. Please, is there a way to accomplish this? Thank you very much!
    My actual code is this:

    “>

    #140069
    luchid
    Participant

    Sometimes just writing helps to figure out :) So, I added this code, and it works now.

    #140070
    luchid
    Participant

    “>

    $thumbnails = get_post_meta($post->ID, “thumb”, false);
    if ($thumbnails[0] != ”) :?>

    echo ‘‘;
    } ?>


Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Other’ is closed to new topics and replies.