Title: Facing error while changing meta description
Last modified: September 1, 2016

---

# Facing error while changing meta description

 *  [ohanian](https://wordpress.org/support/users/ohanian/)
 * (@ohanian)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/)
 * I am following code for name description of my entertainment related wordpress
   site.
 * `<meta name="description" content="<?php if ( is_single() ) { echo $post->post_content;}
   else{ ?><?php echo "Website home page description";; } ?>" />`
 * I wanna make description like follwoing
 * `Watch (Internal Post title), Stream (Internal Post title)else{ ?><?php echo "
   Website home page description";; } ?>`
 * How to correct this code?

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/#post-7532717)
 * What is the error message you received?
 *  Thread Starter [ohanian](https://wordpress.org/support/users/ohanian/)
 * (@ohanian)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/#post-7532722)
 * blank page
 *  Thread Starter [ohanian](https://wordpress.org/support/users/ohanian/)
 * (@ohanian)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/#post-7532723)
 * [@andrew](https://wordpress.org/support/users/andrew/) Nevins I wanna set Watch&
   Online automatic in all internal pages like Watch { echo $post->post_content;}
   Online. But this edited watch & online is showing in home page description too.
   Hope you understand
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/#post-7532725)
 * There isn’t a syntax error in that code, maybe try to `var_dump` $post to see
   if it has what you want

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

The topic ‘Facing error while changing meta description’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/facing-error-while-changing-meta-description/#post-7532725)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
