Shortcode Putting html in parent div
-
This one has me really confused.
I have built two shortcode objects. When I insert them into a page, the output of the shortcode function is going into it’s parent’s parent div.
So for example we will use the shortcode I created which slaps in some simple HTML to include a slideshow of images. My HTML will look something like this:
<div id="primaryContent"> <div id="post-1436" class="postWrapper"> <div class="page_content"> <div class="entry"> (Slideshow and other page content should go here) </div> </div> </div> </div>When I edit the page through admin, I can put something that looks like this:
Test [slideshow]Here’s where things don’t work properly though. The “Test” Text goes into the “entry” div where it should, but slideshow gets dumped into the “postwrapper” div, just above the “page_content” div.
Why isn’t the code that’s being dynamically entered going where it belongs, but anything that is typed directly into the admin panel goes wehre it should? Beats me!
The topic ‘Shortcode Putting html in parent div’ is closed to new replies.