• Hello,

    I am using the PHP method in my theme: echo WPUSB_Shares_View::buttons_share( $args ); to call my share buttons. Works great but on my index.php template I am using Ajax to load every 10 posts. The share buttons don’t seem to work on those posts. Any ideas?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Freitas Victor

    (@victorfreitas)

    Hi @dalbeck,

    Thanks for the feedback.

    This is because the share counts are made when the screen loads.

    As some posts are being called via Ajax, the JavaScript component of the plugin that fetches the counts via API needs to be loaded again.

    In the plugin there is no way to identify this, it would have to be developed an action to load the counts again in your case.

    Thank you!

    Thread Starter Danny Albeck

    (@dalbeck)

    Thanks for the quick reply Victor. Do you think you have any plans for this in the near future? I using just the 1 share icon to click and open the modal (also showing 0 counts).

    Plugin Author Freitas Victor

    (@victorfreitas)

    Hi,

    I’m going to study this better.

    If possible this option in the plugin we will put it.

    Thank you!

    Thread Starter Danny Albeck

    (@dalbeck)

    Thanks @victor!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Ajax Compatibility’ is closed to new replies.