Home Forums Plugin Support WP User Frontend Pro Image type custom field with options

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56273

    david
    Participant
    Post count: 40

    Hello,

    On the issue image type custom field, I need the code both options on the same issue:
    – OPTION A: Image custom field showing the image thumbnail but not linking the image to the full size image.
    – OPTION B: Image custom linking to the author page.

    This code below is the base, but I need to adapt it to the two previous options
    $images = get_post_meta( $post->ID, ‘mey_key_name' );

    if ( $images ) {
    foreach ( $images as $attachment_id ) {
    $thumb = wp_get_attachment_image( $attachment_id, ‘thumbnail' );
    $full_size = wp_get_attachment_url( $attachment_id );

    printf( ‘%s‘, $full_size, $thumb );
    }
    }

    Thanks.

    David
    CEO Innocom

    #56448

    Nayem
    Moderator
    Post count: 6480

    Hello,

    We are now in vacation. Our office will start from 26th July. Right now our developers are also in vacation. So, you can get help after opening our office. Please keep patience.

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Image type custom field with options’ is closed to new replies.