The WordPress Popular Post Plugin is breaking my custom jQuery popup plugin causing it to throw a TypeError saying the jQuery plugin call is not a function.
The error will only happen if...
1. You are on a single post page (the error does not occur at the category level)
2. You are not logged into the backend
I am pretty sure the error is being caused by lines 694 - 700 of file wordpress-popular-post.php, but do not know how to correct it and would prefer not to edit the plugin code for the sake of update ability.
<!-- WordPress Popular Posts v<?php echo $this->version; ?> -->
<script type="text/javascript">
/* <![CDATA[ */
jQuery.post('<?php echo admin_url('admin-ajax.php'); ?>', {action: 'wpp_update', token: '<?php echo $nonce; ?>', id: <?php echo $id; ?>}, function(data){/*alert(data);*/});
/* ]]> */
</script>
<!-- End WordPress Popular Posts v<?php echo $this->version; ?> -->
The plugin looks to be working perfectly otherwise ... it is just causing my jQuery plugin to break.
Can someone please help?
You can see a live example here: http://blog2.givemore.com/pickford-on-give-take/
Thanks!
Joe