Tangler Discussion Forums

Discuss

Topics

Click a Topicto start discussing

    On my single post view I see below the comment/review

    Write a Review of

    but the title is missing. I'm using the aws template and noticed that awardwinninghosts.com gives the name of the host e.g.

    Write a Review of Bluehost

    So something is missing in my template. Please advise what files I need to update and how, to get the title to appear.

    2008-11-11 17:27:53.0

    Perhaps you deleted the code in single.php that sets $title which is used here?

    You can open comments.php, go to the "Write a Review of" text, and replace $title with get_the_title()

    2008-11-11 19:04:44.0

    that fixed it but in single.php it's the exact code that's in the awh single.php that came w/ the package. I can see the $title getting set in single.php. Now that I made your change it works, so that means that $title is somehow not getting saved or is overwritten?

    2008-11-11 21:43:59.0

    Dan I think the problem is that in awh/comments.php the code that says: "... echo $title;" should instead be "...global $title; echo $title;" because I see that global higher up when $title is used.

     

    Does that make sense for a fix to the template? Not sure if I should look anywhere else.

    2008-11-11 22:06:16.0
To send a message, Join Now (it's quick and free) or Sign In
Edit Topic
Delete Topic
Are you sure you want to delete the topic