public
Created

  • Download Gist
functions.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<?php
 
add_filter( 'swas_footnote_start_number', 'be_footnotes_start' );
/**
* Footnotes Start
* @since 1.0.0
*
* When viewing "All Pages" option, ensure start number is 1
*
* @param int $number
* @return int
*/
function be_footnotes_start( $number ) {
global $multipage;
if( get_query_var('all-pages') && $multipage )
$number = 1;
return $number;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.