Title: Simple php &quot;display title&quot; help
Last modified: August 20, 2016

---

# Simple php "display title" help

 *  [xxatti](https://wordpress.org/support/users/xxatti/)
 * (@xxatti)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/)
 * Here’s the code I’m trying to alter:
 *     ```
       if ($show_meta) {
       		$postheader .= '<span class="entry-meta"><span class="entry-comments">' . get_comments_number() . '</span>';
       		$postheader .= '<abbr class="published" title="' . get_the_time('c') . '">' . get_the_time( get_option('date_format') ) . '</abbr></span>';
               }
       ```
   
 * I’m trying to get my post title to appear inside the meta section. As it is right
   now, only the date and comments number are showing. Problem is I’m a total newbie
   when it comes to php. I’m hoping someone can help me out here.

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

 *  [Tom Lynch](https://wordpress.org/support/users/ctsttom/)
 * (@ctsttom)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/#post-2255356)
 * You need to use the php function [get_the_title()](http://codex.wordpress.org/Function_Reference/get_the_title)
 *  Thread Starter [xxatti](https://wordpress.org/support/users/xxatti/)
 * (@xxatti)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/#post-2255363)
 * Yes, but I’m not sure where/how I need to place this code.
 *  Thread Starter [xxatti](https://wordpress.org/support/users/xxatti/)
 * (@xxatti)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/#post-2255370)
 * Ok, I got the title to display, but it’s all showing up on the same line. Is 
   there a way for me to have the title display below the date and comments?
 *  [Tom Lynch](https://wordpress.org/support/users/ctsttom/)
 * (@ctsttom)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/#post-2255538)
 * Sure if you put the title in a html tag something like this:
 * `<h1><?php the_title() ?></h1>`
 * You should get it on new line, or you could simply insert:
 * `<br />`
 * After the title.

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

The topic ‘Simple php "display title" help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Tom Lynch](https://wordpress.org/support/users/ctsttom/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/simple-php-display-title-help/#post-2255538)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
