• Hi, i’ve been using this awesome plugin for a while, and now i’ve added a modal that loads the posts via an ajax request. What i’m trying to do is to get the buttons in the modal, for which i’m using the following code:

    if(function_exists('like_counter_p')) { like_counter_p('Like',$postID); }

    But it always returns 0 counts and the button is not clickable, while everything works fine in the post page.

    Any idea how to make this work?

Viewing 1 replies (of 1 total)
  • Thread Starter Jack Johansson

    (@mhmdshv)

    Nevermind, i solved it by using $post->ID = $id in the beginning of my modal, but i still would like to know why i can’t directly use post code as an argument.

Viewing 1 replies (of 1 total)
  • The topic ‘How to use this plugin in a modal?’ is closed to new replies.