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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.