Use of shortcode in index of theme issue
-
Hi,
I am creating a theme for my knowledgebase, of which index.php will use the content from the shortcode
[kbe_knowledgebase]
However when I do, it seems to cut off all my code after the shortcode. As I’m putting it into my index.php, I’m using the following php code:
<?php echo do_shortcode("[kbe_knowledgebase]"); ?>
This is to put the knowledgebase content into my Bootstrap well.
Without shortcode:
https://www.dropbox.com/s/p169ps65vcnrdn6/kb-page-without-shortcode.png?dl=0With shortcode:
https://www.dropbox.com/s/hhhzt36btkwpeif/kb-page-with-shortcode.png?dl=0For a bit more context, here is the code I’m putting the shortcode in:
<div class="container"> <div class="row"> <div class="col-md-8"> <div class="well"> <?php echo do_shortcode("[kbe_knowledgebase]"); ?> </div> </div>
I hope you’re able to help and I’ve provided enough information. I’m new to WordPress theming so muddling through it.
If you need any more info, please let me know and I’ll get it to you.
- The topic ‘Use of shortcode in index of theme issue’ is closed to new replies.