Title: Why WP doesn&#8217;t parse shortcodes?
Last modified: August 19, 2016

---

# Why WP doesn’t parse shortcodes?

 *  [flow01](https://wordpress.org/support/users/flow01/)
 * (@flow01)
 * [16 years ago](https://wordpress.org/support/topic/why-wp-doesnt-parse-shortcodes/)
 * Why the following code put in index.php doesn’t parse shortcodes?
 *     ```
       $page_id = 1;
       $page_data = get_page( $page_id );
       $content = $page_data->post_content;
       $title = $page_data->post_title;
       echo $page_data->post_content;
       ```
   
 * How to make it parse shortcodes?

Viewing 1 replies (of 1 total)

 *  [popper](https://wordpress.org/support/users/julialasarte/)
 * (@julialasarte)
 * [16 years ago](https://wordpress.org/support/topic/why-wp-doesnt-parse-shortcodes/#post-1510571)
 * I’m not sure, but I think `do_shortcode()` is called by `the_content()`. You 
   could call it with somethin like this: `do_shortcode($content);`that returns 
   the $content with the parsed content.

Viewing 1 replies (of 1 total)

The topic ‘Why WP doesn’t parse shortcodes?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [popper](https://wordpress.org/support/users/julialasarte/)
 * Last activity: [16 years ago](https://wordpress.org/support/topic/why-wp-doesnt-parse-shortcodes/#post-1510571)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
