I'm trying to add social network urls to my blog by adding the below code to the sidebar.php file of my wordpress blog for each of the networks:
However, the when you click on them from the home page, the most recent blog's url is sent instead of that of the page, which is the only time it's an issue.
The second problem, is that the title only includes the date of the post, which IS in the title, but nothing after the first space... so I was wondering if I could use something other than "the_permalink" or "the_title" that would use a different method of creating the full link.
Live blog at: http://franketeam.com/blog
Code:
<a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>"target=_blank><img src='http://franketeam.com/blog/delicious.gif' border='0'>Del.icio.us</a><br>
The second problem, is that the title only includes the date of the post, which IS in the title, but nothing after the first space... so I was wondering if I could use something other than "the_permalink" or "the_title" that would use a different method of creating the full link.
Live blog at: http://franketeam.com/blog
Comment