variable in parameter
-
Hi, i need to put the current category id in a parameter, does anyone know how to do this?
my code is like this:
`<?php if (is_category()) { //check if current page is a category
$args = array( ‘numberposts’ => 9, ‘category’ => ‘31,3,11,4,32,29,30,27,28,26,-$cur_cat_id‘, ‘posts_per_page’ => 9,’paged’ => $paged);
}Hope someone knows
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘variable in parameter’ is closed to new replies.