Support » Plugin: Like Button Rating ♥ LikeBtn » get only number of likes

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author LikeBtn

    (@likebtn)

    Plugin Author LikeBtn

    (@likebtn)

    Hope it was helpful.

    Yes! That I was looking for… Thanks

    Hi Likebtn I want to add your plugin on all my themes
    I downloaded it yesterday and started to remove my old and simple rating system.

    But I see that all codes not working for me
    For example I want to add the number of likes in index.php

    <div class="likearea">
                               <?php $post_custom = get_post_custom( get_the_ID() ); ?>
                                <a href="<?php the_permalink() ?>" class="views"><?php echo getPostViews(get_the_ID()); ?></a>
                                <a href="<?php the_permalink() ?>" class="like"><?php echo (int)$post_custom['Likes'][0]; ?></a>
                                <a href="<?php the_permalink() ?>" class="dislike"><?php echo (int)$post_custom['Dislikes'][0]; ?></a>
                            </div>

    <?php likebtn_post(); ?> is not working but I got it using <?php echo do_shortcode(‘[likebtn]’); ?> but thisone gets only default style.

    I tried this too.

    <div class="likearea">
                            <?php $postid = get_the_ID(); ?>
                            <a href="<?php the_permalink() ?>" class="views"><?php echo getPostViews(get_the_ID()); ?></a>
                                <a href="<?php the_permalink() ?>" class="like"><?php echo (int)$postid['Likes'][0]; ?></a>
                                <a href="<?php the_permalink() ?>" class="dislike"><?php echo (int)$postid['Dislikes'][0]; ?></a>
                            </div>

    But not worked

    Plugin Author LikeBtn

    (@likebtn)

    Have you enabled the plugin and configured synchronization?

    Also see http://likebtn.com/en/faq#statistics_not_working

    To enable statistics...
        Upgrade your website to PRO or higher plan on LikeBtn.com.
        Set your website tariff plan in Settings.
        Enter E-mail and API key in Settings.
        Set Synchronization interval in Settings.

    Anyway thankyou…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘get only number of likes’ is closed to new replies.