Loop Issue | WordPress.org

You should probably do this inside the loop, i. e.:

<?php 
	if ( have_posts() ) { 
		while ( have_posts() ) : the_post();
			$link = get_post_meta(get_the_ID(), 'link', TRUE);
?>
			<p><a href="<?php echo $link; ?>"><?php the_title(); ?></a></p>
…
…

@10010110,

I tried that, but, I think that I must have had the syntax wrong. Working now!

Thank you for the quick reply!



Source link