Help! Any wordpress guru's in the house?

By : Administrator
Published 23rd September 2011 |
Read latest comment - 27th September 2011

I'm no coder, and it shows!

Just giving the blog a new lick of paint, new wp template and just plugging in some mods.

But I am stumped on how wordpress generates a URL? Does anyone know what code I need to add in, or have something I can past in.

Basically I need to generate a web link for Facebook from my blog posts.

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="http://mylocalblog.co.uk/<dynamically generated weblink?????>" action="recommend" show_faces="false" width="550" send="true"></fb:like>


Have tried
%postname%/
%post_id%/

<?php wp_title(''); ?> works great for Post Titles, just need the equivelent of this that will give me the post URL.

Any ideas?

Steve Richardson
Gaffer of My Local Services
My Local Services | Me on LinkedIn
Comments
Finally cracked it!

<?php the_permalink() ?>

Right, that wasted 5 hours.....

Steve Richardson
Gaffer of My Local Services
My Local Services | Me on LinkedIn

Apologies for not being available in those 5 hours.

Apologies for not being available in those 5 hours.

trust me, the air was blue

Steve Richardson
Gaffer of My Local Services
My Local Services | Me on LinkedIn

This Thread is now closed for comments