Sorry, this is the first time I've ever posted on this forum. Did not know about the code thingy.
Here is what I have. The loop is actually closed. The loop is working fine when I put the actual URL in rather then using the custom field. It is just when I replace the actual URL with the custom field that it then just prints out the custom field url on the web page rather then showing the contents of that url.
Code again :
`<?php
$page_id = 1391; //ID of page from your WP admin panel
$page_data = get_page( $page_id );
echo $page_data->post_content; // Show page content
$url = get_custom_field_value('address', true); //custom field
?>
<?php include_once(ABSPATH. WPINC. '/feed.php');
$afl_link = fetch_feed($url); //making use of custom field rather then having fetch_feed('http://feeds.feedburner.com/example');
$maxitems = $afl_link->get_item_quantity(23);
$afl_items = $afl_link->get_items(0,$maxitems);
if (!rss_items) {
echo "There are no Feeds";
} else {
$i = 0;
foreach ($afl_items as $item) {
?>
//Echo out the RSS feed details
<p>get_permalink(); ?>" target="_blank">
<?php echo $item->get_title(); ?><p>
......... }
...?>'