The obvious way is to check if there is only one page. You could get the 
page count in your theme.php and save it in a variable with

$this->assign( 'pagecount', Utils::archive_pages( 
$theme->posts->count_all(), $items_per_page ) );

and then do a simple if($pagecount>1) before you use the page_selector() 
function.

Am Mittwoch, 19. Juni 2013 14:53:30 UTC+2 schrieb David Cardoso:
>
> this tag, what will be probably obvious to you, shows the number of pages 
> of posts as a link to each one <?php echo $theme->page_selector( null, 
> array( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> but if there's only one 
> page it displays "1" … what do i do to make it display nothing if there is 
> only one page? 

-- 
-- 
To post to this group, send email to habari-users@googlegroups.com
To unsubscribe from this group, send email to 
habari-users-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/habari-users
--- 
You received this message because you are subscribed to the Google Groups 
"habari-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to habari-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to