[Resolved] [Plugin: EG-Attachments] Plugin Adding Two Extra Closing DIV Tags
Right… First off, I can’t get this plugin to obey any custom rules I give it unless I use the shortcode directly in the built-in page editor; using do_shortcode in the template file always uses the default options (even though I change those ‘default’ options…).
So I’m using the following shortcode in my page at the moment:
[attachments label=doctitle doctype=all fields="title,caption,size" titletag="" nofollow=1]
And I have the following code in my template file to display the page content:
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '' . __( 'Pages:', 'boilerplate' ), 'after' => '' ) ); ?> </div><!-- .entry-content --> <?php endwhile; ?>
All is well in the actual list of attachments, however this breaks the layout of elements that follow it (namely: the footer)… Looking at the source code, it appears to be adding a couple a few unnecessary closing tags at the end of the list.
This is where the fun starts… Viewing the page source code, the example below is what’s being added with only one file attached to the page.
Please note: I have replaced the website address with # and indented the tags to more clearly show the valid opening/closing tags in in the code, the last two closing tags for :
Please can someone tell me what the heck is going wrong here?? I’m running out of hair to pull out.. 🙁
- The topic ‘[Resolved] [Plugin: EG-Attachments] Plugin Adding Two Extra Closing DIV Tags’ is closed to new replies.