Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Blog Masonry custom link #85306
     alvinhy
    Participant

    Hello there,

    I got it to work by using:
    $link = get_post_meta($post->ID, 'wpcf-website', true);

    Another question is, is it possible to only show this code only for IMAGE post type formats?

    COPY CODE
    		<?php		
    			$cfsource = get_post_meta($post->ID, 'wpcf-source', true);
    			echo '<div class="cflink"><a href="'. $link .'" target="_blank">Get it at '. $cfsource .' Today</a></div>';	
    		?>	
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?