Capture a Function Argument as a PHP Variable
-
Hi,
I’d like to capture the value of the optioncount arguments in the wp_list_cats function and put it into a php variable.
Right now I am using:
wp_list_cats(‘&optioncount=1’)Which displays the category name and the number of entries in that category. I just want the number in a php variable. Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Capture a Function Argument as a PHP Variable’ is closed to new replies.