• Hi Guys

    I was wondering if any one with some PHP knowledge could help me out with this. I have a plugin which uses this bit of code to spit out the facebook like button

    array(
    		"name" => "Facebook Like",
    		"id" => "as-fblike",
    		"js" => "",
    		"style" => "float: left; margin: 0 5px; padding: 4px 0 0; width: 50px;",
    		"code" => '<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=148193528604395&xfbml=1"></script><fb:like href="" send="false" layout="box_count" width="50" show_faces="false" font=""></fb:like>'
    		),

    the issue is the plugin does not make use the permalink and each comment link turns out to be a different like

    I need to replace the
    href=”” with something like href=”<?php echo get_permalink(); ?>” but the issue is the php does not get executed and the html source looks like href=”<?php echo get_permalink(); ?>” 🙁

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Some help with PHP code’ is closed to new replies.