Title: Shortcode not rendering in custom theme
Last modified: January 9, 2018

---

# Shortcode not rendering in custom theme

 *  anonymized-909894
 * (@anonymized-909894)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-rendering-in-custom-theme/)
 * The shortcode to display the calendar on a page of my site is not working. I’m
   using a custom built theme and a custom page template for the booking page, but
   I’m calling the_content in it, not get_the_content, so it should be correctly
   filtering the shortcode.
 * Is there something potentially missing from my custom page template that would
   render the shortcode correctly?
 * The relevant bits of the template are basically:
 *     ```
       <?php get_header(); ?>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
       <section>	
         <?php the_content(); ?>
       </section>
       <?php endwhile; else: ?>
         <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
       <?php endif; ?>
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-not-rendering-in-custom-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Shortcode not rendering in custom theme’ is closed to new replies.

 * ![](https://ps.w.org/booking-system/assets/icon-256x256.png?rev=2192807)
 * [Pinpoint Booking System - Version 2](https://wordpress.org/plugins/booking-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/booking-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/booking-system/)
 * [Active Topics](https://wordpress.org/support/plugin/booking-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/booking-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/booking-system/reviews/)

## Tags

 * [custom page template](https://wordpress.org/support/topic-tag/custom-page-template/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: anonymized-909894
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/shortcode-not-rendering-in-custom-theme/)
 * Status: not a support question