GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Early morning wordpress question. (https://gfy.com/showthread.php?t=961334)

Angry Jew Cat - Banned for Life 04-01-2010 07:58 AM

Early morning wordpress question.
 
i am calling up a tag cloud on one of my sites like so.

Quote:

wp_tag_cloud('format=array' );
I need to call the tag list as an array to display it properly within my theme, however I would like to do a similar display of the categories. Calling categories into a cloud can be done like so...

Quote:

wp_tag_cloud( array( 'taxonomy' => 'category' ) );
So anyways, I need to mash these two together somehow, and everything I've been trying this morning has been pure failure.

Any suggestions?

Jdoughs 04-01-2010 08:14 AM

When in doubt, grab a plugin. If you cant use the widget, I'm sure the pieces you're missing are right in there.


http://www.nkuttler.de/wordpress/a-b...-cloud-widget/

Angry Jew Cat - Banned for Life 04-01-2010 08:26 AM

Quote:

Originally Posted by Jdoughs (Post 16997752)
When in doubt, grab a plugin. If you cant use the widget, I'm sure the pieces you're missing are right in there.


http://www.nkuttler.de/wordpress/a-b...-cloud-widget/

if i use a plugin i'll still wind up having to chop something together. i have some php sorting the array of tags out into different columns for display in my theme.

so long as i can somehow call the categories into an array i should be fine to keep using it as is. but i'm just failing miserably at figuring out what variable, if any, i can add to do that. i keep fucking the page up.

fris 04-01-2010 08:33 AM

you want to mix category and tag into 1 cloud?

Angry Jew Cat - Banned for Life 04-01-2010 08:34 AM

Quote:

Originally Posted by fris (Post 16997815)
you want to mix category and tag into 1 cloud?

category only

Agent 488 04-01-2010 08:51 AM

april fools.

fris 04-01-2010 08:52 AM

Quote:

Originally Posted by Angry Jew Cat (Post 16997819)
category only

what seems to be the problem then?

the format you have is correct

http://codex.wordpress.org/Template_...Category_Cloud

fris 04-01-2010 08:56 AM

you probably want this

Code:

wp_tag_cloud( array( 'taxonomy' => 'category', 'format' => 'array' ) );

Angry Jew Cat - Banned for Life 04-01-2010 10:08 AM

Quote:

Originally Posted by fris (Post 16997875)
you probably want this

Code:

wp_tag_cloud( array( 'taxonomy' => 'category', 'format' => 'array' ) );

cheers that works perfect, wasn't sure how to format the input there. now i know :thumbsup


All times are GMT -7. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123