The template tag to generate the title is the following.
<?php the_title(); ?>
Post the template/file where you want that title of post: http://pastebin.com
Is the theme WP 1.5 compatible? Is any other template tag working on the same page?
http://pastebin.com/328027
I’m pretty sure it is 1.5 compatible because the whole layout works and everything, just trying to put this one little code won’t work.
oh, and where I want the title to be is on like 88.
So, what do you get from the_title() then? An error message? Just blank (look at the source code as well)? Or…?
Can you put the_title() and give us the link to the site?
it’s just blank. yeah here’s the link: http://sweetness.sereniti.net I made a new un-password post so you could see.
How do you insert the_title in the file? Paste the whole file with the_title() inserted. http://pastebin.com
I did. Here it is again:
http://pastebin.com/328036
It’s on line 88:
88. <?php comments_popup_link(__(‘hurry, be the first one to comment on <?php the_title(); ?> ‘), __(‘1 Comment on <?php the_title(); ?> ‘), __(‘% Comments on <?php the_title(); ?> ‘), ‘commentslink’, __(‘Comments off’)); ?>
You cannot nest PHP tags (that is, the <?php … ?>). Try this:
<?php comments_popup_link('hurry, be the first one to comment on ' . get_the_title(), '1 Comment on ' . get_the_title(), '% Comments on ' . get_the_title(), 'commentslink', __('Comments off')); ?>
yay! it worked!!!! thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!