Title: Some help with PHP code
Last modified: August 20, 2016

---

# Some help with PHP code

 *  [Saijo George](https://wordpress.org/support/users/1800pocketpc/)
 * (@1800pocketpc)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/some-help-with-php-code/)
 * 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)

 *  [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * (@tcbarrett)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/some-help-with-php-code/#post-2285488)
 * Have you tried contacting the plugin author?
    Don’t forget FB are phasing out
   FMBL

Viewing 1 replies (of 1 total)

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [TCBarrett](https://wordpress.org/support/users/tcbarrett/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/some-help-with-php-code/#post-2285488)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
