May 2, 2011 at 4:18 PM · Filed under tech talk
Addthis does not allow you to choose a thumbnail when you share with facebook. This little snippit automatically selects your featured image and uses it when anyone uses addthis to share.
Simply paste the following just after the <head> tag in your header.php file in your wp-content > themes > yourcurrentthemename
<?php if (has_post_thumbnail( $post->ID ) ): ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘single-post-thumbnail’ ); ?>
<meta property=”og:image” content=”<?php echo $image[0];?>”/>
<?php endif; ?>
I’m on wordpress 3.1.1 and this does the trick for one of my blogs where this is essential. I hope that it helps you guys.
January 11, 2011 at 9:18 PM · Filed under software
This should auto-tweet for me now. Which in turn will automatically add this to my Facebook. That’s the Theory anyways!
January 11, 2011 at 9:08 PM · Filed under software
I added Tweet this, as although I already have social bookmarking and feed options, I think Twitter is as important, if not more important these days. Anyways, It took a little while to style it properly. It looks ok now. Not 100% happy with it but nobody reads this blog anyway! I installed WordTwit too… Settings for that were pretty easy, so let’s hope it automatically tweets when I publish a blog item. Here’s to hoping.
January 11, 2011 at 8:20 PM · Filed under software
Had to do an upgrade to get some of my old plugins working again… why they broke, god only knows… The instructions for upgrading manually are too simplistic. They don’t tell you which files you may wish to back up or anything. You practically have to know the architecture of WordPress to successfully upgrade it. Auto upgrade i hear you say? If only that worked for me… I’ve never gotten that to work. Before you say anything about FTP or DB details, I’m a web developer by trade. WordPress is kinda shit when it comes to any degree of flexibility. Anyways, Rant over, I just want to see if this auto-posts to twitter…
July 24, 2009 at 2:33 PM · Filed under tech talk
This is for people who have access to the files for the blog. Simply go into your template folder. In my case it’s wp-content>themes>fjords04-10.
1. Open the file called single.php. (use wordpad or any decent text editor)
2. locate (on line 5):
<div id=”pagina”>
3. insert (on the next line):
<a href=”index.php”> Return to blog list</a>
4. save the file and don’t forget to (re)upload it to your web server.
Hope this helps some of you