PHP assistance

Discussion in 'Coding Help' started by robototitico, Mar 7, 2011.

  1. robototitico

    robototitico New Member

    I want to put a facebook share link to an email.

    This calls the permalink for the ad - get_permalink($post->ID)
    This is the facebook share link -
    How do I combine the two in the code below? The relevant place is marked in red, with my effort which doesnt work.


  2. Tom

    Tom New Member

    Not sure if it will work but try the follwing instead. Basically just move the function call outside of the quotes.
    $message .= "[B][COLOR=red]".get_permalink($post->ID)[/COLOR][/B]."\r\n\r\n\r\n\r\n";

Share This Page