WordPress.org

Support

Support » How-To and Troubleshooting » Add blogpost in facebook

Add blogpost in facebook

  • Hi,

    I’m, running my head against wall with this problem.

    I want button how does the same as this facebook button on top of the article.

    Press the button and you can see what it does. I haven’t found any describing this problem!

    I’m currently using this code:

    <a href="http://facebook.com/sharer.php?u=<?php the_permalink(); ?>;&t=<?php the_title_attribute(); ?>" title="Facebook">
    <img src="http://www.poeticpeaceproductions.com/wp-content/themes/poetic peace productions/icons/FaceBook-icon.png" alt="Facebook Icon" /></a>

    But it doesn’t work like I want it to; it just put a link to the page without the text; like the article!

    What do I do wrong??

    /Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The article you show is not doing this part. ;&t=<?php the_title_attribute(); ?>
    Also it doesn’t look like that semicolon is supposed to be there before the &

    Okay, I’ve changed it but there seems to be a connection problem because in a few seconds it is shown right but then it turns to not show the content; like the article!

    Driving me insane; could it bee some thing with the way the permalink is? In numbers instead of text???

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add blogpost in facebook’ is closed to new replies.
Skip to toolbar