Jump to content

php parse endwhile rror


cbee

Recommended Posts

Thanks so much for reading and helping.

 

I'm having the above error on single.php on my wordpress site. Please help and be specific because I'm a newb. Link here

 

pastebin.com/uj6nDB7c

 

<iframe>

<?php get_header(); ?>

 

 

 

<?php

$category = get_the_category();

$parent = $category[0]->category_parent;

?>

 

<?php $blogcategory = get_option('ct_blog_category', $single = true); ?>

<?php if (in_category($blogcategory) || $parent == $blogcategory): ?>

   

<div id="listingwrap">

 

        <?php get_sidebar(); ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

 

            <div id="post-<?php the_ID(); ?>">

 

                <div id="imageslides">

                    <div>

                      <?php if(get_post_meta($post->ID, "image1_value", "image1alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image1_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image1alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

                    <div>

                        <?php if(get_post_meta($post->ID, "image2_value", "image2alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image2_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image2alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

                    <div>

                        <?php if(get_post_meta($post->ID, "image3_value", "image3alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image3_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image3alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

                    <div>

                        <?php if(get_post_meta($post->ID, "image4_value", "image4alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image4_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image4alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

<div>

                        <?php if(get_post_meta($post->ID, "image5_value", "image5alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image5_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image5alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

<div>

                        <?php if(get_post_meta($post->ID, "image6_value", "image6alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image6_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image6alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image7_value", "image7alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image7_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image7alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image8_value", "image8alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image8_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image8alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

</div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image9_value", "image9alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image9_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image9alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

</div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image10_value", "image10alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image10_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image10alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

</div>

<div>

                        <?php if(get_post_meta($post->ID, "image11_value", "image11alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image11_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image11alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

</div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image12_value", "image12alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image12_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image12alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

</div>

<div>

                        <?php if(get_post_meta($post->ID, "image13_value", "image13alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image13_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image13alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

               

 

<div>

                        <?php if(get_post_meta($post->ID, "image14_value", "image14alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image14_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image14alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image15_value", "image15alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image15_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image15alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image16_value", "image16alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image16_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image16alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

 

<div>

                        <?php if(get_post_meta($post->ID, "image17_value", "image17alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image17_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image17alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                        <?php } ?>

                    </div>

<div>

                        <?php if(get_post_meta($post->ID, "image18_value", "image18alt_value", $single = true) !="") { ?>

                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image18_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image18alt_value", $single = true); ?>" /></a>

                        <?php } else { ?>

                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                    <?php } ?>

            </div>

        </div>

                <div id="imagesnav">

                    <ul class="right">

                        <li><span class="jFlowControl">1</span></li>

                        <li><span class="jFlowControl">2</span></li>

                        <li><span class="jFlowControl">3</span></li>

                        <li><span class="jFlowControl">4</span></li>

                        <li><span class="jFlowControl">5</span></li>

                        <li><span class="jFlowControl">6</span></li>

                        <li><span class="jFlowControl">7</span></li>

                        <li><span class="jFlowControl">8</span></li>

                        <li><span class="jFlowControl">9</span></li> 

                        <li><span class="jFlowControl">10</span></li> 

                        <li><span class="jFlowControl">11</span></li> 

                        <li><span class="jFlowControl">12</span></li>

                        <li><span class="jFlowControl">13</span></li>

                        <li><span class="jFlowControl">14</span></li>

                        <li><span class="jFlowControl">15</span></li>

                        <li><span class="jFlowControl">16</span></li>

                        <li><span class="jFlowControl">17</span></li>

                        <li><span class="jFlowControl">18</span></li>

                    </ul>

 

                    <span class="jFlowPrev left">Previous</span>

                    <span class="jFlowNext right">Next</span>

 

                </div>

 

                    <div class="clear"></div>

 

                <div id="listingdetail">

 

                    <div class="address">

                        <h3><?php the_title(); ?></h3>

                    </div>

 

                    <div class="clear"></div>

 

                    <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>

 

                    <?php comments_template(); ?>

 

                </div>

 

            </div>

 

        <?php endwhile; else: ?>

 

 

            <p>Sorry, no posts matched your criteria.</p>

 

    <?php endif; ?>

 

</div>

 

    <?php else: ?>

 

    <div id="listingwrap">

 

<script type="text/javascript" src="http://www.google.com/jsapi"></script>

        <script src="http://maps.google.com/maps?file=api&v=2&key=<?php echo get_option("ct_google_key", $single = true); ?>" type="text/javascript"></script>

        <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=<?php echo get_option("ct_google_key", $single = true); ?>" type="text/javascript"></script>

        <style type="text/css">@import url("http://www.google.com/uds/css/gsearch.css");</style>

 

        <!-- Map Search Control and Stylesheet -->

        <script type="text/javascript">window._uds_msw_donotrepair = true;</script>

        <script src="http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new" type="text/javascript"></script>

        <style type="text/css">@import url("http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css");</style>

        <script type="text/javascript">

          function LoadMapSearchControl() {

            var options = {

                  zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,

                  title : "Property Details",

                  url : "<?php the_permalink(); ?>",

                  idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM,

                  activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM

                  }

            new GSmapSearchControl(

                  document.getElementById("mapsearch"),

                  ", <?php if(get_post_meta($post->ID, "city_value", "state_value", "zip_value", $single = true) !="") : ?><?php echo get_post_meta($post->ID, "city_value", $single = true); ?>, <?php echo get_post_meta($post->ID, "state_value", $single = true); ?> <?php the_title(); ?>, <?php echo get_post_meta($post->ID, "zip_value", $single = true); ?><?php endif; ?>",

                  options

                  );

          }

          GSearch.setOnLoadCallback(LoadMapSearchControl);

        </script>

 

        <?php get_sidebar(); ?>

 

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

 

            <div id="post-<?php the_ID(); ?>">

 

                <div id="imgwrap">

                    <div id="imageslides">

                        <div>

                          <?php if(get_post_meta($post->ID, "image1_value", "image1alt_value", $single = true) !="") { ?>

                            <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image1_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image1alt_value", $single = true); ?>" /></a>

                            <?php } else { ?>

                                <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                            <?php } ?>

                        </div>

 

                        <div>

                            <?php if(get_post_meta($post->ID, "image2_value", "image2alt_value", $single = true) !="") { ?>

                            <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image2_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image2alt_value", $single = true); ?>" /></a>

                            <?php } else { ?>

                                <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                            <?php } ?>

                        </div>

 

                        <div>

                            <?php if(get_post_meta($post->ID, "image3_value", "image3alt_value", $single = true) !="") { ?>

                            <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image3_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image3alt_value", $single = true); ?>" /></a>

                            <?php } else { ?>

                                <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                            <?php } ?>

                        </div>

 

                        <div>

                            <?php if(get_post_meta($post->ID, "image4_value", "image4alt_value", $single = true) !="") { ?>

                            <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image4_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image4alt_value", $single = true); ?>" /></a>

                            <?php } else { ?>

                                <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />

                            <?php } ?>

                        </div>

 

                    </div>

 

                   

 

                    <?php if(get_post_meta($post->ID, "sold_value", $single = true) =="Yes") { ?>

                        <img id="status" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/sold.png" />

                    <?php } else { } ?>                   

 

                    <?php if(get_post_meta($post->ID, "rented_value", $single = true) =="Yes") { ?>

                        <img id="status" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/rented.png" />

                    <?php } else { } ?>

 

                    <?php if(get_post_meta($post->ID, "reduced_value", $single = true) =="Yes") { ?>

                        <img id="status" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/reduced.png" />

                    <?php } else { } ?>

 

                </div>

 

 

                <div id="imagesnav">

                    <ul class="right">

                        <li><span class="jFlowControl">1</span></li>

                        <li><span class="jFlowControl">2</span></li>

                        <li><span class="jFlowControl">3</span></li>

                        <li><span class="jFlowControl">4</span></li>

                    </ul>

                    <span class="jFlowPrev left">Previous</span>

                    <span class="jFlowNext right">Next</span>

                </div>

 

                    <div class="clear"></div>

 

                <div id="listingdetail">

 

                    <div class="address">

                        <h3><?php the_title(); ?></h3>

                        <?php if(get_post_meta($post->ID, "city_value", "state_value", "zip_value", $single = true) !="") : ?>

                            <p class="location"><?php echo get_post_meta($post->ID, "city_value", $single = true); ?>, <?php echo get_post_meta($post->ID, "state_value", $single = true); ?> <?php echo get_post_meta($post->ID, "zip_value", $single = true); ?></p>

                        <?php endif; ?>

                        <?php if(get_post_meta($post->ID, "price_value", $single = true) !="") : ?>

                            <p class="right price">$<?php echo get_post_meta($post->ID, "price_value", $single = true); ?>

                        <?php endif; ?>

                        <?php if(get_post_meta($post->ID, "property_value", $single = true) =="Rental") { ?>

                            <span>/monthly</span></p>

                        <?php } else { ?>

                            </p>

                        <?php } ?>

                    </div>

 

                    <div class="clear"></div>

 

                    <?php if(get_post_meta($post->ID, "mls_value", $single = true) !="") : ?>

                        <p class="mls">MLS ID: #<?php echo get_post_meta($post->ID, "mls_value", $single = true); ?></p>

                    <?php endif; ?>

 

                    <?php if(get_post_meta($post->ID, "google_maps_value", $single = true) !="") : ?>

                        <p class="mls">MLS ID: #<?php echo get_post_meta($post->ID, "google_maps_value", $single = true); ?></p>

                    <?php endif; ?>

 

                    <?php if(get_post_meta($post->ID, "bed_value", "bath_value", "sqft_value", $single = true) !="") : ?>

                        <p class="bedbathsqft"><?php echo get_post_meta($post->ID, "bed_value", $single = true); ?> Bed, <?php echo get_post_meta($post->ID, "bath_value", $single = true); ?> Bath, <?php echo get_post_meta($post->ID, "sqft_value", $single = true); ?> Sq Ft</p>

                    <?php endif; ?>

 

                    <?php if(get_post_meta($post->ID, "property_value", $single = true) !="") : ?>

                        <p class="propertytype">Property Type: <?php echo get_post_meta($post->ID, "property_value", $single = true); ?></p>

                    <?php endif; ?>

                   

                    <h4>Property Description</h4>

 

                    <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>                   

 

<?php if(get_post_meta($post->ID, "usemap_value", $single = true) !="No") { ?>

<h4>Property Location</h4>

<div id="location">

<div id="mapsearch">Loading...</div>

</div>

                        <div class="clear"></div>

 

 

<?php } else { ?>

 

                <?php } ?>

 

                </div>

 

            </div>

 

        <?php endwhile; else: ?>

 

            <p>Sorry, no posts matched your criteria.</p>

 

 

</div>

 

<?php endif; ?>

 

<?php get_footer(); ?>

 

 

</iframe>

Link to comment
Share on other sites

As you're new, read the rules, especially #4 of Forum DOs.

 

Also, please do not post up entire code unless someone asks for it. Not many are willing to read through your mess. It helps to just post up the relevant parts.

 

As for the issue, does it tell you what line the error is on?

Link to comment
Share on other sites

First while opening is on Line: 17

First while closing is on Line: 206

Second while opening is on Line: 248

Second while closing is on Line: 343

 

These may help, Ken. The whiles are quite big too.. it could be a missing Semi-Colon ( ; ) or a missing closing brace( } ), or anything.

 

EDIT: This message was for Ken, I don't know what the problem is, the code is too much and messy.

Read Kens post.

What line is the error about? It should have an error like

Parse Error: Endwhile in {directory} on line 242

for example. What is the line that error is corresponding to?

Link to comment
Share on other sites

Hi Teddy! Thanks for your response!

 

Since I'm a complete newb and just a wordpress hack person, I don't quite understand how to fix this.

 

What are the corresponding closing tags and where should I place them?

 

Thanks again.

Link to comment
Share on other sites

<div>
                        <?php if(get_post_meta($post->ID, "image8_value", "image8alt_value", $single = true) !="") { ?>
                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image8_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image8alt_value", $single = true); ?>" /></a>
                        <?php } else { ?>
                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />
</div>

You didn't close the else.

 

Hi there, the above is the error. Also, where do I find Ken's post?

What do you mean where? It was the first reply in this topic.

Link to comment
Share on other sites

As you're new, read the rules, especially #4 of Forum DOs.

 

Also, please do not post up entire code unless someone asks for it. Not many are willing to read through your mess. It helps to just post up the relevant parts.

 

As for the issue, does it tell you what line the error is on?

This is kens post. It's in this thread, if you searched for Ken2k7...

Link to comment
Share on other sites

Ken, my sincere apologies, I totally missed the first reply (I thought teddy's was the first reply).

 

I really appreciate your taking the time to help. Can you please show me how to close the else and where to place that?

 

Link to comment
Share on other sites

<div>
                        <?php if(get_post_meta($post->ID, "image8_value", "image8alt_value", $single = true) !="") { ?>
                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image8_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image8alt_value", $single = true); ?>" /></a>
                        <?php } else { ?>
                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />
</div>

Find that code, as put in Ken2k7's post, and replace it with..

<div>
                        <?php if(get_post_meta($post->ID, "image8_value", "image8alt_value", $single = true) !="") { ?>
                        <a href="<?php the_permalink(); ?>"><img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/img_resize/timthumb.php?src=<?php echo get_post_meta($post->ID, "image8_value", $single = true); ?>&h=438&w=630&zc=1" alt="<?php echo get_post_meta($post->ID, "image8alt_value", $single = true); ?>" /></a>
                        <?php } else { ?>
                            <img class="right" src="<?php bloginfo('url'); ?>/wp-content/themes/realestate/images/image_placeholder.jpg" height="438" width="630" alt="Image Coming Soon" />
<?php } ?>
</div>

Link to comment
Share on other sites

wow thanks for the ligtning fast response.

 

I made the changes and unfortunately I have this new error

 

Parse error: syntax error, unexpected $end in /data/16/1/46/157/1535483/user/1652818/htdocs/mywebsite/wp-content/themes/realestate/single.php on line 377

 

I'm definitely at a loss and confused!

 

 

 

Link to comment
Share on other sites

sorry for my idiocy but this is what I have:

 

  <?php endwhile; else: ?>

 

            <p>Sorry, no posts matched your criteria.</p>

 

 

</div>

 

<?php endif; ?>

 

<?php get_footer(); ?>

 

 

==========

 

But still i have that error on line 377

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.