What I'd like to do is if the NextGEN gallery has more than one page (pagination) execute some code...I got close:
<?php
$nggpage = get_query_var('nggpage');
if ($nggpage > 1) {
echo "duck";
}
?>
This code appears on all pages but the first page, how do I make it work on the first page? Because if I use $nggpage >= 1
it executes the code on all pages, even if there is no pagination...I want it to only execute the code if there is pagination.
Any ideas?
Thanks,
Josh
>0
?