Support

Account

Home Forums General Issues Displaying ACF Field in a URL? Reply To: Displaying ACF Field in a URL?

  • If the above code is inside a post loop then something like

    
    $rss = new SimpleXMLElement('http://eliteprospects.com/rss_player_stats2.php?player='.get_field('_elite_prospects_id'), null, true);
    

    If it’s not in a loop then you’ll need to supply the post_id the get_field() call.