Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-01-2010, 07:58 AM   #1
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
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?
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:14 AM   #2
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
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/
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:26 AM   #3
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by Jdoughs View Post
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.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:33 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
you want to mix category and tag into 1 cloud?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:34 AM   #5
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by fris View Post
you want to mix category and tag into 1 cloud?
category only
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:51 AM   #6
Agent 488
Registered User
 
Industry Role:
Join Date: Feb 2006
Posts: 22,511
april fools.
Agent 488 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:52 AM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Angry Jew Cat View Post
category only
what seems to be the problem then?

the format you have is correct

http://codex.wordpress.org/Template_...Category_Cloud
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 08:56 AM   #8
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
you probably want this

Code:
wp_tag_cloud( array( 'taxonomy' => 'category', 'format' => 'array' ) );
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-01-2010, 10:08 AM   #9
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by fris View Post
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
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.