Help with $cat not pulling through the variable
-
Hi, Confused from Manchester here.
I’ve got a bit of code :
//$cat=get_query_var(‘cat’);
//echo($cat); — just to check that the category ID is coming through – it is
//$posts = get_posts(‘numberposts=3&offset=0&cat=$cat’);But it’s not using the variably within the category, it’s just pulling through all posts. Any ideas? Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Help with $cat not pulling through the variable’ is closed to new replies.