Support

Account

Home Forums General Issues Getting ACF to work with XML Reply To: Getting ACF to work with XML

  • It’s okay~ I’ve figured out the solution.

    <?php
    $xml = 'http://domain.com/jobrss.aspx?jobspecialization='.get_field('acf_field', 'option');
    $jobs = simplexml_load_file($xml);
    foreach ($jobs->channel->item as $jobinfo) { ?>
    <li></li>
    <?php } ?>

    Cheers