WordPress.org

Ready to get started?Download WordPress

Forums

Add blogpost in facebook (3 posts)

  1. Korgaard
    Member
    Posted 4 years ago #

    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

  2. Darrell Schauss
    Member
    Posted 4 years ago #

    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 &

  3. Korgaard
    Member
    Posted 4 years ago #

    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???

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags