[wp-hackers] When archive.php is pulled in the theme, how does it know what category it applies to before (or as) the loop starts?
Jeremy Visser
jeremy at visser.name
Thu Oct 8 06:27:48 UTC 2009
On Wed, 2009-10-07 at 12:09 +0100, Mike Little wrote:
> $cat = intval( get_query_var('cat') );
Or, if you want to shave off about 0.0000001 millisecond off the
execution time, you can use:
$cat = (int) get_query_var('cat');
/Jeremy's useless tip of the day. :)
More information about the wp-hackers
mailing list