Created
February 5, 2014 22:46
-
-
Save pippinsplugins/8834900 to your computer and use it in GitHub Desktop.
Duplicates the EDD downloads pagination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: EDD Double Pagination | |
*/ | |
function pw_edd_duplicate_pagination() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
var html = $('#edd_download_pagination').clone(); | |
html.attr('id', 'edd_download_pagination_top'); | |
html.insertBefore( '.edd_downloads_list' ); | |
}); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'pw_edd_duplicate_pagination' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pippin - does this gist still work with the latest version of EDD? Would really like to apply this on the downloads on our site.