Support

Account

Home Forums Front-end Issues Displaying a group outside WordPress Loop Reply To: Displaying a group outside WordPress Loop

  • Hi @jazibzaman

    The the_field() function needs the post ID for the second parameter if you call it outside of The Loop. So, it should be something like this:

    <span class="aps-1co"> <?php the_field('device_type', $post_ID); ?> </span>

    Also, you only need the PHP closing tag after a PHP code. So, in your case, I believe you don’t need it.

    I hope this helps 🙂