Shortcodes don't work
-
Hello!
The title explains the problem: Shortcodes don’t work on my pages. I have reverted to one of the default themes and they work. Which means it’s a problem with the theme I coded.
Here is the code:
<?php $postcount=1; while ( have_posts() ) : the_post(); if( ($postcount % 2) == 0 ) $post_class = ''; else $post_class = clear ; ?> <div class="postlist <?php echo $post_class; ?>"> <div <?php post_class(); ?>> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail();?></a> <?php } ?> <?php the_content();?> </div><!-- /.post_class --> </div> <?php $postcount++; endwhile; ?> <?php bootstrapwp_content_nav('nav-below');?>
I’ve researched this and found that not using
<?php the_content(); ?>
can cause the problem. However, I am using it here.Any help would be greatly appreciated. Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Shortcodes don't work’ is closed to new replies.