Viewing 1 replies (of 1 total)
  • Plugin Author Rajan Vijayan

    (@rajanit2000)

    Hi gretelvinas.,

    Just can you put this code. Any short code not needed

    <div class="search-form">
            <h2>Search Property</h2>
            <form action="<?php bloginfo( 'url' );?>" method="get" >
                <input type="hidden" name="post_type" value="property" />
                <input type="text" name="s" id="search-key" value="<?php echo get_query_var( 's' ) ?>" class="input-block-level" placeholder="Enter suburb, postcode or property ID" />
                <div class="row-fluid">
                    <div class="span4">
                        <label class="bedroom-icon">Bedrooms</label>
                    </div>
                    <div class="span8">
                        <select name="bedroom" class="input-block-level">
                            <option value="">Any</option>
                            <?php
                            $terms = get_terms("bedroom");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <option <?php if( get_query_var( 'bedroom' ) == $term->name ){?> selected <?php }?>><?php echo $term->name;?></option>
                            <?php }
                            }?>
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class="bathroom-icon">Bathrooms</label>
                    </div>
                    <div class="span8">
                        <select name="bathroom" class="input-block-level">
                            <option value="">Any</option>
                            <?php
                            $terms = get_terms("bathroom");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <option <?php if( get_query_var( 'bathroom' ) == $term->name ){?> selected <?php }?>><?php echo $term->name;?></option>
                            <?php }
                            }?>
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class="car-icon">Car space</label>
                    </div>
                    <div class="span8">
                        <select name="carspace" class="input-block-level">
                            <option value="">Any</option>
                            <?php
                            $terms = get_terms("carspace");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <option <?php if( get_query_var( 'carspace' ) == $term->name ){?> selected <?php }?>><?php echo $term->name;?></option>
                            <?php }
                            }?>
                        </select>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span4">
                        <label class="home-icon">Type</label>
                    </div>
                    <div class="span8">
                        <select name="residencytype" class="input-block-level">
                            <option value="">Any</option>
                            <?php
                            $terms = get_terms("residencytype");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <option <?php if( get_query_var( 'residencytype' ) == $term->name ){?> selected <?php }?>><?php echo $term->name;?></option>
                            <?php }
                            }?>
                        </select>
                    </div>
                </div>
                <div class="advance-search">
                <h2>Search with</h2>
                    <div class="row-fluid">
                        <div class="span6">
                            <h3>Close to</h3>
                            <?php
                            $terms = get_terms("closeto");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <div class="checkbox">
                                    <label>
                                        <input name="closeto" value="<?php echo $term->name;?>" type="checkbox" /><?php echo $term->name;?>
                                    </label>
                                </div>
                            <?php }
                            }?>
                        </div>
                        <div class="span6">
                            <h3>Stay away from..</h3>
                            <?php
                            $terms = get_terms("awayfrom");
                            $count = count($terms);
                            if ( $count > 0 ){
                                foreach ( $terms as $term ) {?>
                                <div class="checkbox">
                                    <label>
                                        <input name="awayfrom" value="<?php echo $term->name;?>" type="checkbox" /><?php echo $term->name;?>
                                    </label>
                                </div>
                            <?php }
                            }?>
                        </div>
                    </div>
                </div>
                <div class="submit">
                    <input type="submit" class="btn btn-new" value="Search Now" />
                </div>
            </form>
        </div>
Viewing 1 replies (of 1 total)
  • The topic ‘Is there a short code?’ is closed to new replies.