The custom post type i mentioned above is called tribe_events btw…
Hello freischwimmen,
i will create a option for custom post types so you can tell Mashshare to show the share buttons on this specific ones.
I changed this behavior because i do not want to have Mashshare loading js and css file on pages where the Mashshare buttons are not used.
If you know a better way how to check if a specific shortcode is running please let me know. I ll dig more into this!
Thanks a lot for the quick answer René, if you could add that functionality for custom post types that would be great! I understand why you changed it in the first place, makes sense.
Hi René, i installed the latest update but sharing still doesn’t work on custom post type articles, should this work after the latest update or did you not manage to adress this yet?
Thanks a lot in advance!
Please try a shortcode. This should work, isnt it?
Shortcode use is not really applicable in my case, i need to use the manual insert via <?php mashshare(); ?> – that one does unfortunately not work on custom post type articles yet.
I just checked because i was interested – all works fine when using the shortcode inside the post editor. Just so you know…
Just tried this in my template which didnt work either unfortunately: <?php echo do_shortcode(‘[mashshare]’); ?>
Please put this in line 474 in /includes/template-functions.php
if(has_action('mashshare')) {
return true;
}
if(has_action('mashsharer')) {
return true;
}
directly after:
if( has_shortcode( $post->post_content, 'mashshare' ) ) {
return true;
}
If it works, i put this code in the next update.
Works like a charm. Thank you very much Rene, the support on this plugin is second to none. Great Job!
I had the same problem and your solution worked for me as well, Rene. Many thanks.