We help IT Professionals succeed at work.

Custom theme not parsing shortcodes in page content

dvointeractive
on
Created a custom theme and all is working well except one plugin that uses shortcodes. I've got the shortcode in the content of a page and it's just displaying that shortcode as the output on the page, not parsing it.

Here's the code that pulls in the content of my pages:

    <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <?php
		global $post;
		echo nl2br($post->post_content);
        ?>
    <?php endwhile; ?>
    <?php endif; ?>

Open in new window


Anyone know of anything I can do here?

wp_head and wp_footer are in the proper places, yes. Other plugins are working, only plugins that require shortcodes are not working.
Comment
Watch Question

nevermind, I got it:

   
 <?php if (have_posts()) : ?>
    
    <?php while (have_posts()) : the_post(); ?>
    <?php
		global $post;
		echo apply_filters('the_content',get_the_content( $more_link_text, $stripteaser, $more_file ));
        ?>
    <?php endwhile; ?>
    <?php endif; ?>

Open in new window