ryarwood
12/7/2015 - 9:32 PM

Using a custom field to populate a custom post loop.

Using a custom field to populate a custom post loop.

<?php $newsFeed = the_field('player_feed'); ?>

<?php query_posts('showposts=10&category_name='.$newsFeed.'&ignore_sticky_posts=1'); ?>
<?php while (have_posts()) : the_post(); ?>

  <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>

<?php endwhile; wp_reset_query(); ?>