Set up a custom URL for a template manual insteration in Wordpress

agneslp May 04, 2012 12:42PM EDT

I have setup the wordpress widget,; but then I did some customization because it would not show properly in categoreies, custom post types, etc. I wanted a specific set of buttons, so I set my style in the okugin file, and manually add the follwoing code in my templates:

`<?php do_action('addthis_widget',get_permalink($post->ID), get_the_title($post->ID), 'mystyle'); echo 'do'?>`

It works well on posts and custom poosts and pages, but on a page that lists pages... nor on category.
I guess it is because it gets lost with the post ID. I could just put the blog URLK, i dont care, so I tried this

`<?php do_action('addthis_widget','url', 'title', 'mystyle'); ?>`

But it does not show at all :-(

What is wrong?
Some control in the plugion on the URL?

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers