Title: get the formatted content
Last modified: August 20, 2016

---

# get the formatted content

 *  Resolved [shaolin46](https://wordpress.org/support/users/shaolin46/)
 * (@shaolin46)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-the-formatted-content/)
 * Hi to everyone!
    I’ve a simple & stupid problem..but I can’t solve! I’ve made
   my own theme, so I’ve to deal with some problems/errors, etcc.. I’ve solved all
   of them but one.
 * I can’t get the formatted content of a page or a post and display it like it 
   appear in the backend, like I’ve written it (bold, italics, etc..)
 * I’ve used the loop and then the tag “the_content();” to get the content of a 
   page or post…but it appears like unformatted string..no bolds, no italics, nothing
   I’ve applied in the backend
 * This is my code in a page-template
 *     ```
       <div id="single_page">
          <div id="privacy">
            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
               <?php the_content(); ?>
            <?php endwhile; ?>
           </div>
        </div>
       ```
   
 * Someone can help me?
    Thanks!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-the-formatted-content/#post-2388773)
 * `the_content()` should echo the formatted content (including html tags etc) –
   however, how it is shown on the front end will depend on the stylesheet of your
   theme.
 * check this by looking at the html code of your site (single pages or posts) in
   the browser – browser tool bar: ‘view’ ‘source’ or similar.
 * can you post a link to your site?
 *  Thread Starter [shaolin46](https://wordpress.org/support/users/shaolin46/)
 * (@shaolin46)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-the-formatted-content/#post-2388780)
 * Hi alchymyth!
    Thanks for the quick replay…. I’ve searched throw my css an other
   time like you suggest…AND IT’S THE CSS RESET FAULT!!! 😀
 * In particular, there is this rule:
 *     ```
       html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video
   
       font: inherit;
       ```
   
 * So…I’ve forgotten about this little inconvenience when you use a reset css to
   develop quickly for all the browsers…
    So..I’ve solved my problem!
 * Thanks for the support!

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

The topic ‘get the formatted content’ is closed to new replies.

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)
 * [get content](https://wordpress.org/support/topic-tag/get-content/)

 * 2 replies
 * 2 participants
 * Last reply from: [shaolin46](https://wordpress.org/support/users/shaolin46/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/get-the-formatted-content/#post-2388780)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
