using wp_tag_cloud() as array
-
I created a Tag Archive Page and I am having trouble getting wp_tag_cloud() to work
Heres the the code:
if( is_page() ){ $tagcloud = wp_tag_cloud('number=0&format=array&orderby=name&order=ASC'); print_r($tagcloud); }
The problem is that ‘Array’ is printed on the screen, if the format is array shouldn’t the value be returned and not echo’d?
Btw, commenting out the print_r() function still prints ‘Array’ to the screen.
Is this the correct way to use wp_tag_cloud()?
Thanks for any help
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘using wp_tag_cloud() as array’ is closed to new replies.