shortcode renders incorrectly in my theme
-
Trying out the “Bookit Calendar” plugin in a theme. I have its shortcode in a shortcode block on the page, and in the index.php file:
<div class=’booking’ style=’margin-top: 120px;’><?php the_content() ?></div>
within “the loop”. It does render, but is missing the categories that are supposed appear to the left of the calendar… just shows the heading “choose category”. If I switch to WP’s default twenty-twenty theme, it works fine.
Have gone as far as to create a bare bones theme for testing… no javascript, an empty CSS file and a function.php file that only loads the CSS and adds ‘title-tags’ theme support… same result. What bit of magic am I missing here.
I’ve also tried do_shortcode(‘[bookit]’) in place of get_content()… same result. If anyone can point me in the right direction, I would greatly appreciate it.
- The topic ‘shortcode renders incorrectly in my theme’ is closed to new replies.