WordPress.org

Ready to get started?Download WordPress

Forums

Facebook button (new version) (2 posts)

  1. Dezio
    Member
    Posted 11 months ago #

    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

  2. Dezio
    Member
    Posted 11 months ago #

    No answer?

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

Reply

You must log in to post.

About this Topic