Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Not working in Ajax loaded items #230
    samrhein
    Participant

    It also looks like line 2 of wti_like_post.js needs to be changed to jQuery("body").on("click", ".jlk", function(e){ to register click events for the AJAX loaded buttons

    in reply to: Not working in Ajax loaded items #229
    samrhein
    Participant

    I was receiving the error Fatal error: Call to undefined function GetWtiLikePost() when loading posts through AJAX. I was able to fix it by changing line 367 in wti_like_post.php to if (is_admin() && !( defined('DOING_AJAX') && DOING_AJAX )) {

    The problem is, calls from admin_ajax.php make all checks on is_admin() return true, so the other plugin files and scripts weren’t being included.

Viewing 2 posts - 1 through 2 (of 2 total)