Hi, I’ve really enjoyed playing with your theme for my blog and am very happy with how well it works. I do have one issue, that I’m trying to resolve. I really want to display a list of posts from the current category in the sidebar, and have been having trouble getting one that works with Habitat. The closest one I’ve found is Related Posts by Category Widget. But when I install it, it works on Individual Post pages, but on the homepage and archive pages it breaks the layout, so that the sidebar displays below the content. Ugh.
I did a compare in the code, which turned up an extra </div> tag when I use this plugin. I can’t find any div tags in the plugin page, so I’m hoping I can tweak something to make this work.
This is without the plugin on an archive page:
<div class=’sidebar’><span class=’sidebar_top’></span><span class=’sidebar_bottom’></span><div id=”community_news-3″ class=”box_small box widget community_news”><h3 class=”widgettitle”>Recent Posts</h3>
This is with the plugin: (note the </div> after the sidebar_bottom span)
<div class=’sidebar’><span class=’sidebar_top’></span><span class=’sidebar_bottom’></span></div><div id=”community_news-3″ class=”box_small box widget community_news”><h3 class=”widgettitle”>Recent Posts</h3>
My blog is at http://rufftoyreviews.com Currently, I have this widget turned off because it makes such a mess of the homepage, but I can put it back in at the bottom of the widget list if that is what is needed.
Assuming this: http://wordpress.org/extend/plugins/related-posts-by-category-widget/ is the plugin you’re using, I’ll have a play with it on my test site and see if it’s a quick fix.
Bear in mind we can’t officially support 3rd party plugins but I’ll see what I can do.
The topic ‘Formatting Issue with Related Posts by Category Widget plugin’ is closed to new replies.