SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2012
    Location
    Tucson, AZ
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where is this Script Coming From?

    I'm working on this website:
    http://encantadaatriversidecrossing.com/floor-plans/

    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:

    Code:
    <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>

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,014
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Looks to me like it's coming from get_post_meta, a native WordPress core function.

    The values would be set in the individual posts.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2012
    Location
    Tucson, AZ
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Figured it out. It was set up quite weird. It was calling from blank WP pages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •