Title: title code
Last modified: August 18, 2016

---

# title code

 *  [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/)
 * I just got a new template that I found on a site. But it doesn’t show the title
   of the post. So I want to add it so that it’s says like comment on (title of 
   post). But I can’t figure out the little code or insert or whatever to show the
   title of the post. I tried to take it from one of my old themes but it won’t 
   work. can someone please help me? thanks.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243207)
 * The template tag to generate the title is the following.
    <?php the_title(); ?
   >
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243209)
 * it didn’t work.
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243210)
 * Post the template/file where you want that title of post: [http://pastebin.com](http://pastebin.com)
 * Is the theme WP 1.5 compatible? Is any other template tag working on the same
   page?
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243211)
 * [http://pastebin.com/328027](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.
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243212)
 * 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?
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243213)
 * And what theme IS it?
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243214)
 * it’s just blank. yeah here’s the link: [http://sweetness.sereniti.net](http://sweetness.sereniti.net)
   I made a new un-password post so you could see.
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243215)
 * it’s from pink-baby.com
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243216)
 * How do you insert the_title in the file? Paste the whole file with the_title()
   inserted. [http://pastebin.com](http://pastebin.com)
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243217)
 * I did. Here it is again:
    [http://pastebin.com/328036](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’));?
   >
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243220)
 * 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')); ?>`
 *  Thread Starter [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * (@angelsweetie)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243259)
 * yay! it worked!!!! thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘title code’ is closed to new replies.

 * 12 replies
 * 4 participants
 * Last reply from: [angelsweetie](https://wordpress.org/support/users/angelsweetie/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/title-code/#post-243259)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
