Title: return meta data as plain text
Last modified: August 19, 2016

---

# return meta data as plain text

 *  Resolved [jimmyt1988](https://wordpress.org/support/users/jimmyt1988/)
 * (@jimmyt1988)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/return-meta-data-as-plain-text/)
 * Hi there,
 * Is it possible to return META DATA stored in database as Plain text? I am doing:
   get_post_meta($post->ID, ‘title_tag’, true);
 * but hyphens and quote marks are getting ASCIFIED 😀

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

 *  [transom](https://wordpress.org/support/users/transom/)
 * (@transom)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/return-meta-data-as-plain-text/#post-2029386)
 * Perhaps if you post your snippet of code (or use pastebin if more than 10 lines),
   we can offer some insight. It is a little odd that the text is getting encoded.
   The quote marks should be escaped but that is easily undone on output.
 *  Thread Starter [jimmyt1988](https://wordpress.org/support/users/jimmyt1988/)
 * (@jimmyt1988)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/return-meta-data-as-plain-text/#post-2029393)
 *     ```
       <title><?php
           if(get_post_meta($post->ID, 'title_tag', true)){
               echo wp_title();
               bloginfo( 'name' );
           }else{
               echo get_post_meta($post->ID, 'title_tag', true);
           }
       ?></title>
       ```
   
 * returns
 * <title> » DawnClassic and Vintage Wedding Cars</title>
 * P.S now i have posted it here.. why does the &raquo come up.. thats the problem.
   haha. goodness me.
 * Meh, i’ve removed it now. it was wp_title(); and its pointless.

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

The topic ‘return meta data as plain text’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [jimmyt1988](https://wordpress.org/support/users/jimmyt1988/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/return-meta-data-as-plain-text/#post-2029393)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
