Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created February 5, 2014 22:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pippinsplugins/8834900 to your computer and use it in GitHub Desktop.
Save pippinsplugins/8834900 to your computer and use it in GitHub Desktop.
Duplicates the EDD downloads pagination
<?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' );
@KNC-KK
Copy link

KNC-KK commented Aug 28, 2017

Pippin - does this gist still work with the latest version of EDD? Would really like to apply this on the downloads on our site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment