[Plugin: Add Link to Facebook] Query Posts Conflict
-
I’ve found that this plugin is in conflict with my query posts callout on my template page? Initially it doesn’t show up at all on the home sidebar (where php is called out AFTER the query posts and loop). But I find that when I cut out the query_posts callout or put the sidebar callout BERFOR the query posts and loop, then the plugin works properly. Strange. Perhaps I’m using query posts wrong? Here’s the code currently:
<div>
<?php query_posts( ‘cat=-1, cat=-12, cat=-15, cat=-11, cat=-13, cat=-14, cat=-16, cat=-17, cat=-10’, ‘posts_per_page=5’ );?>
<?php get_template_part( ‘loop’, ‘index’ ); ?>
</div>
<div>
<?php dynamic_sidebar(‘sidebar-home’); ?>
</div>Moving the sidebar container above the query/loop allows the plugin to work. Deleting the query posts call and keeping the sidebar callout below – the plugin works.
Any help as to solving this problem would be much appreciated.
Thanks much!
WDhttps://www.ads-software.com/extend/plugins/add-link-to-facebook/
- The topic ‘[Plugin: Add Link to Facebook] Query Posts Conflict’ is closed to new replies.