Posts Tagged ‘babygotmac’

WordPress: Add Technorati links to your tags

Friday, August 29th, 2008

Ok, this one is fun. I wanted to find a way to list a posts tags at the end of the post, while at the same time providing links to that tag on Technorati. I went so far as to tweak the core WordPress files before I was pointed in the right direction by WP guru Scott Spiel.

The code you’re about to see is on use over at BabyGotMac.com – click any article, then scroll down to see it in use.

To display a normal string of current tags, you would normally use “the_tags”. This gives you a flat list.

In order to accomplish what I wanted though, I used “get_the_tags”, as seen here:


200808292215.jpg

I’ve posted this on PasteBin, and you can copy/paste it from here.

You’ll need a technorati.png file in your image folder obviously (steal mine from BGM if you want), and you will probably want to tweak the URL a bit, but this will get you a list of tags (linked to posts on your site tagged using that term), followed by a space and then the Technorati logo with a link to that tag on Technorati.

Hopefully someone will find this useful – let me know if you do, and please feel free to offer any modifications or thoughts.

WordPress: Add a ‘Twitter this’ link

Friday, August 29th, 2008

A little code snippet that will allow you to send the current page to Twitter from within WordPress – best used in the meta of single.php.

200808292229.jpg

This will open a Twitter page with the post field pre-filled with your page link. Try it here: Send to Twitter

If you want to use it as a method for people to contact you, put @YOURUSERNAME  directly before the ‘check this out’ string, like so:


200808292231.jpg

Like so – Send me a message on Twitter

I’ve been tweaking the meta section of my single.php pages on BabyGotMac constantly to try to keep them current and useful for visitors, and adding ‘twitter this’ seemed like a logical jump.

Let me know if you have any further related tweaks or questions.

New layout underway

Monday, July 21st, 2008

I’m working on a new layout – live, in action. Pardon the dust and feel free to let me know what you think of it as it progresses. This will be an ongoing process for the next several days and/or.

Eventually the layout will be what’s used on BabyGotMac.com. No, I’m not going to have ads on my ‘personal site’ – these are placeholders.