treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Where is this Script/Table Coming From?

  • I'm working on this website:
    http://bit.ly/OEBf58

    At the bottom, you will see that there is a table that includes pricing and housing information. However, I can't seem to figure out how to edit that content. It is hard-coded into the template but doesn't seem to call on a plugin for the information, here is the code from the lower part of the template.

    <table>
    <tbody>
    <tr>
    <td class="header-end-left"></td>
    <td class="price">Rent</td>
    <td class="bedrooms">Unit</td>
    <td class="features-3" colspan="2">Features</td>
    <td class="size">Size/SQFT</td>
    <td class="header-end-right"></td>
    </tr>
    <?php $odd_or_even = 'odd'; ?>
    <?php query_posts('static=true&posts_per_page=-1&child_of='.$id.'&order=ASC'); ?>
    <?php if(have_posts()) : while (have_posts()) : the_post(); ?>
    <tr class="<?php echo $odd_or_even; ?>">
    <?php $odd_or_even = ('odd'==$odd_or_even) ? 'even' : 'odd'; ?>
    <td style="width: 10px;"></td>
    <td class="price-info">
    <?php $floorplan_price = get_post_meta($post->ID, 'price', true); if ($floorplan_price) { ?>
    <?php echo $floorplan_price; ?><span class="asterisk">*</span>
    <?php } ?>
    </td>
    <td class="bedrooms-info">
    <?php $floorplan_img = get_post_meta($post->ID, 'image', true); if ($floorplan_img) { ?>
    <a href="<?php bloginfo('url'); ?>/wp-content/uploads/<?php echo $floorplan_img; ?>" class="highslide" onclick="return hs.expand(this)"><?php } ?><?php the_title(); ?><?php $floorplan_price = get_post_meta($post->ID, 'price', true); if ($floorplan_price) { ?></a><?php } ?></td>
    <td class="features-1-info">
    <ul>
    <?php $floorplan_features_1 = get_post_meta($post->ID, 'features-1', true); if ($floorplan_features_1) { ?>
    <?php echo $floorplan_features_1; ?>
    <?php } ?>
    </ul>
    </td>
    <td class="features-2-info">
    <ul>
    <?php $floorplan_features_2 = get_post_meta($post->ID, 'features-2', true); if ($floorplan_features_2) { ?>
    <?php echo $floorplan_features_2; ?>
    <?php } ?>
    </ul>
    </td>
    <td class="size-info">
    <?php $floorplan_bedrooms = get_post_meta($post->ID, 'bedrooms', true); if ($floorplan_bedrooms) { ?>
    <?php echo $floorplan_bedrooms; ?>
    <?php } ?>
    </td>
    <td style="width: 10px;"></td>
    </tr>

    <?php endwhile; endif; ?>
    <?php wp_reset_query(); ?>

    </tbody>
    </table>