WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Display like number elsewhere in post? (3 posts)

  1. davidknight42
    Member
    Posted 9 months ago #

    Hi all,

    Is it possible to display the amount of likes a post has from Jetpack elsewhere on the content? So am thinking a text link similar to amount of comments that says "Post liked X Times"

    I see that theres a column for amount of likes in the admin area so am hoping that information is being pulled from the database rather than wordpress.com so its accessible to a template.

    Thanks for any help

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 9 months ago #

    Jetpack uses the following file to count the number of Likes:
    http://plugins.trac.wordpress.org/browser/jetpack/trunk/modules/likes/post-count.js

    You should be able to use the same function to display the number of Likes anywhere on your site, as long as the file above is loaded on the page.

  3. davidknight42
    Member
    Posted 9 months ago #

    Sorry for the late reply. Thank you Jeremy!

Reply

You must log in to post.

About this Plugin

About this Topic