Snippet being rendered outside column shortcode
-
Here is the code I use on home page:
[one_third_last] <h5 class="homepage">Other Recent News</h5> [blog_list thumb="small" showposts="3" category_in= "46" disable="content,meta,more"] [random_posts title="Did you read these stories?" quantity_of_posts="2" Style_sra="3" AutoUpdate="1" Updating_Time="5"] <h5 class="homepage">Recent Comments</h5> [php snippet=3] [/one_third_last]Here is my snippet:
<?php if(function_exists('jme_display_comments')) { jme_display_comments( array( 1 => 1, 2 => 40, 9 => 1, 3 => '<h3><a href="%PERMALINK%">%POSTTITLE%</a></h3>"%COMMENT%..."'));} ?>It works, but here is the HTML output:
<div class="one_third last"> <h5 class="homepage">Other Recent News</h5> <ul class="post_list small_post_list"> <div class="widget spider_random_article"> <script type="text/javascript"> <div id="randarticle_0" style=""> </div> <h5 class="homepage">Recent Comments</h5> <ul class="customized-recent-comments"> <li class="recentcomment"> </ul>The homepage code has [php snippet=3] inside the [one_third] column tags but the HTML is rendered with the snippet appearing outside/after the closing <div> of the column.
Any idea why – and how can I fix it? If you want to view the page it’s here: dev.henleyherald.com – you can see how the snippet should be lined up in the right hand third column but is wrapping across the whole screen.
The topic ‘Snippet being rendered outside column shortcode’ is closed to new replies.