Thread:Project:Support desk/pinterest How to add 'pin it' button/reply (2)

Thanks for your help. I've got the code now: getFullURL).'&media='.urlencode($f->getCanonicalUrl ).'&description='.urlencode($f->getDescription) .'".../> which works except I have to input $f manually. $f = wfFindFile( 'Sunset.jpg' ); I can't do this for every page on my site! I need to find a php code that will get me the filename of the (main) image on the page. I looked at the FILE class but I'm really stuck. $file = File::getFilename; gives me a 'Call to undefined method File::getFilename' error. How do I get the filename using php? Thanks