I would like to add the AddThis Widget to the Archive pages for a particular taxonomy. However I require the AddThis links to be to the Archive and not to the individual posts. I have a template for this taxonomy set up and have tried to add the following code.
do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'fb_tw_p1_sc');
Nothing shows up in the page and in the code only part of the AddThis code is generated which shows that it is trying to produce links for the last post in the list (not the Archive itself). The tags are also empty.
Anyone got any ideas?
- The topic ‘Adding code to an Archive page’ is closed to new replies.