Viewing 3 replies - 1 through 3 (of 3 total)
  • In the template file used to display the hotel pages, there seems to be something missing where the title is displayed.

    Find the line where the_title() is called and see what follows it. If you cannot figure it out, post that line here, with 3 or 4 lines before and after.

    Thread Starter thinqbali

    (@thinqbali)

    Here is the code:

    <?php
    /*
    Template Name: Property Locations
    */
    ?>

    <?php get_header(); ?>

    <?php
    if (have_posts()) : while (have_posts()) : the_post(); ?>
    <!–Listing Hotels on Homepage–>
    <div id=”latest-posts”>
    <div>
    <h1><?php the_title();?>
    </h1>
    <?php the_content(); ?>
    </div>
    <?php

    endwhile; else: ?>
    <?php endif; ?>

    <?php
    $page_title = $post->post_title;

    //$sql = “SELECT * FROM property_details WHERE property_location = ‘” . $page_title . “‘ AND publish=’t'”;
    $sql = “SELECT DISTINCT official_star_rating,self_rating,property_name,id,login_id,property_location,property_description
    FROM property_details pd, property_images pi, room_details rd WHERE rd.property_id=pd.id AND property_location = ‘”. $page_title .”‘ LIMIT 3 “;

    This does not match what I see in the source code for the page. For example, I see a <div id="main"> and <div id="content"> preceeding the comment <!--Listing Hotels on Homepage-->. Did you just omit them from the code you posted? Or is it possible that some other code is being executed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delete Dash in Topics’ is closed to new replies.