Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bluecedardesign

    (@bluecedardesign)

    Figured out my own problem. Had to use wp_get_attachment_url:

    <?php if(get_post_meta($post->ID, "portfolio_image", true)) { ?>
    
                                    <a href="<?php $portfolio_image = get_post_meta($post->ID, 'portfolio_image', true);
    echo wp_get_attachment_url($portfolio_image); ?>" rel="lightbox[<?php the_ID(); ?>]"><img src="<?php $portfolio_thumbnail = get_post_meta($post->ID, 'portfolio_thumbnail', true);
    echo wp_get_attachment_url($portfolio_thumbnail); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>"></a>
    
                                    <?php } ?>

    Took all day, but I hope this may help someone else!

    Thread Starter bluecedardesign

    (@bluecedardesign)

    So after further research, I found out that for some reason CFT is assigning a number value to the images I’m uploading, rather than using the URL as a value.

    How do I make sure that the value assigned to each image is the URL rather than a number?

    Thread Starter bluecedardesign

    (@bluecedardesign)

    Also, this is what I have for my template options:

    [portfolio_image]
    type = file
    relation = true

    [portfolio_thumbnail]
    type = file
    relation = true

Viewing 3 replies - 1 through 3 (of 3 total)