Title: wp &#039;dynamic&#039; title
Last modified: August 20, 2016

---

# wp 'dynamic' title

 *  Anonymous User 10176140
 * (@anonymized-10176140)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/)
 * I am having an issue with the below:
 * `<title><?php if (is_single() || is_page()) { wp_title('',true); } else { bloginfo('
   description'); } ?> — <?php bloginfo('name');?></title>`
 * It works perfectly for Pages and Posts, however the home page only shows:
    `—
   <?php bloginfo('name');?>`
 * Instead of the intended:
    `<?php bloginfo('description'); ?> — <?php bloginfo('
   name'); ?>`
 * Any ideas???

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/#post-3018194)
 * please post a link to your site.
 * what is your text in _**dashboard – settings – general – tagline**_?
 *  Thread Starter Anonymous User 10176140
 * (@anonymized-10176140)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/#post-3018228)
 * The link to the draft site is [here](http://www.icatchers.info/drafts/briarcroft).
 * The tagline text says: “Specialising in the care of People with Dementia in Teignmouth,
   Devon”
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/#post-3018233)
 * possibly because you have a static front page;
 * try:
 *     ```
       <title><?php if (is_single() || is_page()) { wp_title('',true); } elseif(is_front_page()) { bloginfo('description'); } else { bloginfo('description'); } ?> — <?php bloginfo('name');?></title>
       ```
   
 *  Thread Starter Anonymous User 10176140
 * (@anonymized-10176140)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/#post-3018234)
 * Thanks for your reply.
 * That doesn’t seem to work either, I had also tried something similar:
 * `<title><?php if (is_single() || is_page()) { wp_title('',true); } elseif (is_front_page()){
   bloginfo('description'); } ?> — <?php bloginfo('name');?></title>`
 * I know it must be simple – so it’s driving me insane!

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

The topic ‘wp 'dynamic' title’ is closed to new replies.

## Tags

 * [homepage title](https://wordpress.org/support/topic-tag/homepage-title/)
 * [static front page](https://wordpress.org/support/topic-tag/static-front-page/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)
 * [title](https://wordpress.org/support/topic-tag/title/)
 * [WP Header](https://wordpress.org/support/topic-tag/wp-header/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: Anonymous User 10176140
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/tags-36/#post-3018234)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
