Still struggling.
i am using wordpress 4.4, an expert agent feed and expert agent plugin to deliver the feed.
I need to query the rooms node (as above) each room has a size and description node. i would like to display this data on a wordpress post page. i can pull individual node details and sub nodes using code i found with google search.
<?php if(get_post_meta($post->ID, 'entrance_hall_name', true) || // this is what i have named the node for room name
get_post_meta($post->ID, 'entrance_hall_desc', true) || // this is what i have named the node for room description
get_post_meta($post->ID, 'entrance_hall_size', true) || // this is what i have named the node for room size
): ?>
<?php if(get_post_meta($post->ID, 'entrance_hall_name', true)): ?>
<b><?php echo get_post_meta($post->ID, 'entrance_hall_name', true); ?></b>
<br>
<?php if(get_post_meta($post->ID, 'entrance_hall_desc', true)): ?>
<?php echo get_post_meta($post->ID, 'entrance_hall_desc', true); ?>
<?php endif; ?>
<br><br>
<?php if(get_post_meta($post->ID, 'entrance_hall_size', true)): ?>
<?php echo get_post_meta($post->ID, 'entrance_hall_size', true); ?>
<? php echo "<br><br>"; ?>
<?php endif; ?>
<?php endif; ?>
<?php if(get_post_meta($post->ID, 'sep_wc_name', true)): ?>
<?php echo get_post_meta($post->ID, 'sep_wc_name', true); ?>
<?php endif; ?>
<br><br>
<?php endif; ?>
I want to loop through the rooms node returning the values for those that are there, not all rooms have a size
all help appreciated.