Ok, been chatting with the Thesis developers, here's the tread:
*developer*
This bit of test code (when placed in custom_functions.php) correctly picks up the permalink for each post, even on a multi-post listing:
function post_link() { ?>
">Permalink
<?php }
add_action('thesis_hook_after_post', 'post_link');
So, what's the exact code you're using for your sharebar?
*me*
Thanks - I think you've hit it on the head, I appear to be referencing the function, but the function itself isn't in the hook:
<ul id="share-bar">
<li class="share">SHARE
<li class="backtype"><?php sharebar_horizontal(); ?>
Should I try to take the entire PHP content from the sharebar.php file and drop it into the custom_functions file? I guess I was thinking that would be equivalent to loading the plugin normally.
*developer*
This problem may be more to do with the plugin itself. I added this code to custom_functions.php:
function show_sharebar() {
if (function_exists('sharebar_horizontal')) {
sharebar_horizontal();
}
}
add_action('thesis_hook_after_post', 'show_sharebar');
And while the sharebar showed up in the correct location on the home page, it had none of the necessary styling, and only the email link correctly picked up the post's permalink - if it can detect it correctly for one button, it should be able to detect it correctly for all.
When using the plugin's "Auto On", the code worked perfectly on the single post.
So maybe there's more to it than just calling the sharebar_horizontal function, despite what the plugin's documentation suggests.
*me*
Would love to hear your thoughts!