Forums
Forums / Plugin: CodePeople Post Map for Google Maps / map in sidebar?
(@giovannidominonigmailcom)
12 years, 12 months ago
Hi, how can I put the map in the sidebar?
I thought it would be enough to add a line in the sidebar template, but it seems not to be working!
<?php if ( is_active_sidebar( ‘sidebar-1’ ) ) : ?> <div id=”secondary” class=”widget-area” role=”complementary”> <?php dynamic_sidebar( ‘sidebar-1’ ); ?> </div><!– #secondary –> <? php echo do_shortcode (‘[post-map CodePeople]’);?> <?php endif; ?>
Sorry but my website is still local so I cannot post the URL!
http://ww.wp.xz.cn/extend/plugins/codepeople-post-map/
(@codepeople)
Hi,
The syntax of the shortcode is wrong, please corrects syntax of shortode as follow:
<?php echo do_shortcode(‘[codepeople-post-map]’); ?>
The topic ‘map in sidebar?’ is closed to new replies.