WordPress.org

Support

Support » Plugins and Hacks » Facebook button (new version)

Facebook button (new version)

  • Hello,
    I need to update my old version of fb button.

    Before:

    <div class="fb-like" data-href="<?php echo urlencode(get_permalink($post->ID)); ?>" data-width="30" data-layout="button_count" data-show-faces="false" data-send="false"></div>

    After:

    <fb:like href="<?php the_permalink() ?>" layout="button_count" show_faces="false" send="false"></fb:like>

    is <?php the_permalink() ?> right? Cause with <?php echo urlencode(get_permalink($post->ID)); ?> doesn’t work..
    Any helps?

    Thanks

Viewing 1 replies (of 1 total)
  • No answer?

    Which is better? <?php the_permalink() ?> or <?php echo urlencode(get_permalink($post->ID)); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Facebook button (new version)’ is closed to new replies.