Support

Account

Home Forums General Issues the_field not working in a template Reply To: the_field not working in a template

  • Sorry about that. I’m drunk. It’s get_field, not get_the_field.

    <?php
    $cat = get_field('artist_news');
    $recentposts=get_posts('showposts=3&category=$cat');
    
    if ($recentposts) {
    ... rest of your code
    ?>