I am trying to move my share plugin (Trackable Sharing) below a custom opt-in I created. I can get the correct placement on my single posts but the home page never shows the share buttons. I tried a lot different options (heard about wp_reset_query(); here: Is Home () Issues but that didn't work). Nothing is working to show the share buttons on the home page. I couldn't figure out how to put two conditionals one inside of the other so I created two functions and called one inside the other. Sorry if my code is clunky or screams noob.
Here's the code:
add_action('thesis_hook_after_post' , 'afterpost_email');
function trackableshare_custom() {
if (function_exists('_trackableshare_embed')) {
echo _trackableshare_embed();
}
}
function trackableshare_place() {
if (is_home() || is_single()) {
echo trackableshare_custom();
}
}
add_action('thesis_hook_after_post', 'trackableshare_place');
add_action('thesis_hook_after_post', 'thesis_post_tags');
add_action('thesis_hook_after_post', 'thesis_comments_link');
Here's the dummy site where I'm trying the code:
http://webhostdivas.com/test/thesis/
Many thanks!