[wp-hackers] Access the total number of pages of a multipage post or page out of the loop
Aldo Latino
aldolat at gmail.com
Fri Apr 30 15:39:00 UTC 2010
Il 30/04/2010 12:27, John Bloch ha scritto:
> Try adding
>
> global $numpages;
>
> to your header file (or whatever function is generating the head tags you're
> writing).
$numpages in <head> (i.e. outside the loop) is always empty, even if
using global.
--
Aldo Latino
OpenPGP key: 4096R/0xA18E41E8 | bit.ly/keyDSA
84E2 2BC8 ABE3 DCC0 9F15 E511 4357 7ECD 4397 C730
More information about the wp-hackers
mailing list