Support » Plugin: Infinite-Scroll » Javascript wont load after infinite scroll

  • Waqas


    The problem is when the page first loads the elements of javascript appear but after infinite scroll triggers the next page, the javascript don’t work

    my javascript looks like:

        var urlo = encodeURIComponent('<?php the_permalink() ?>');
        document.write('<a target="_blank" rel="nofollow" href="' + urlo + '"></a>');

    any help?

Viewing 1 replies (of 1 total)
  • Plugin Author Glenn Nelson


    @wp Student

    If that is what you have in the callback field, it will not work as it includes both PHP and HTML. The field should contain only raw Javascript.

Viewing 1 replies (of 1 total)
  • The topic ‘Javascript wont load after infinite scroll’ is closed to new replies.