Shortcodes not rendering in WordPress

I have tried to use several plugins that use shortcodes in the post of page, such as, [contact] or [download].

But when I view the page, the shortcode is not rendered, instead is just shows me the shortcode.

To fix this, your template just have the following code in it:

<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
	<?php if ( is_front_page() ) { ?>
		<h2><?php the_title(); ?></h2>
	<?php } else { ?>
		<h1><?php the_title(); ?></h1>
	<?php } ?>
	<?php the_content(); ?>
<?php endwhile; ?>
That will fix all your shortcode problems.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: