Hello,
The Addtoany and the "Improve Include Page" plugins conflict with each other that caused the Addtonay plugin to add social media bar at different places where it encounters the include code.
What I intend to do is disable all automatic hooks of the plugin and hardcode the PHP script of it above the post and page templates.
<?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>
I read this:
http://themeshaper.com/custom-wordpress-hooks-filters-thematic-06/
but wasn't able to get the results I want.
I coded this:
function childtheme_postfooter() {
<?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>
}
add_filter ('thematic_postfooter', 'childtheme_postfooter');
in functions.php
but this completely redefined the footer and showed the social media bar (the plugin hook) only.
What I want is just to add the PHP hook over my current post footer.
Also, how to hook it to pages?
Thanks in advance.