Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1440 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

wordpress categories multiple dropdown

Thread title: wordpress categories multiple dropdown
Reply    
    Thread tools Search this thread Display Modes  
08-23-2010, 01:39 PM
#1
hakem is offline hakem
hakem's Avatar
Status: Member
Join date: Feb 2010
Location:
Expertise:
Software:
 
Posts: 130
iTrader: 0 / 0%
 

hakem is on a distinguished road

Send a message via MSN to hakem

  Old  wordpress categories multiple dropdown

Hello,

I want to make three drop down boxes

when you choose a category in the 1st one , it populates the 2nd one with the child categories.

When you choose a child category in the 2nd menu it populates the 3rd one.

how can i do that ?

Thanks

Reply With Quote
08-23-2010, 02:13 PM
#2
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old

You could get an array of the categories and their child categories, and then use JS to implement the correct array when chosen?

Reply With Quote
08-23-2010, 02:55 PM
#3
Fez is offline Fez
Fez's Avatar
Status: Member
Join date: Jun 2010
Location: Saudi Arabia
Expertise: HTML, CSS, Wordpress, jQuery
Software: e-texteditor
 
Posts: 206
iTrader: 2 / 100%
 

Fez is on a distinguished road

Send a message via MSN to Fez

  Old

http://net.tutsplus.com/tutorials/ht...s3-and-jquery/

use that tutorial

+

<?php wp_list_categories( depth=2 ); ?> on anywhere in your theme, you can target it with css and JS.

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

for more options...

I hope that's what you were looking for.

Reply With Quote
08-23-2010, 04:17 PM
#4
hakem is offline hakem
hakem's Avatar
Status: Member
Join date: Feb 2010
Location:
Expertise:
Software:
 
Posts: 130
iTrader: 0 / 0%
 

hakem is on a distinguished road

Send a message via MSN to hakem

  Old

Originally Posted by Gaz View Post
You could get an array of the categories and their child categories, and then use JS to implement the correct array when chosen?
I think you got what I mean , but how can I do it ?

I want an example of it.

Thanks

Originally Posted by Fez View Post
http://net.tutsplus.com/tutorials/ht...s3-and-jquery/

use that tutorial

+

<?php wp_list_categories( depth=2 ); ?> on anywhere in your theme, you can target it with css and JS.

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

for more options...

I hope that's what you were looking for.
Thanks Fez, that link contains useful info.
but what i want isn't a drop down menu.

Reply With Quote
08-25-2010, 06:57 PM
#5
hakem is offline hakem
hakem's Avatar
Status: Member
Join date: Feb 2010
Location:
Expertise:
Software:
 
Posts: 130
iTrader: 0 / 0%
 

hakem is on a distinguished road

Send a message via MSN to hakem

  Old

Solved , using the append and get in jquery.

Reply With Quote
08-25-2010, 07:20 PM
#6
Gaz is offline Gaz
Gaz's Avatar
Status: Request a custom title
Join date: Apr 2007
Location: UK
Expertise: Code & Programming
Software: Coda, TextMate, Sublime 2
 
Posts: 2,097
iTrader: 26 / 100%
 

Gaz will become famous soon enough Gaz will become famous soon enough

Send a message via Skype™ to Gaz

  Old

Ah. Sorry hakem, didn't see your reply. Glad you got it sorted out though

Reply With Quote
08-26-2010, 01:54 AM
#7
hakem is offline hakem
hakem's Avatar
Status: Member
Join date: Feb 2010
Location:
Expertise:
Software:
 
Posts: 130
iTrader: 0 / 0%
 

hakem is on a distinguished road

Send a message via MSN to hakem

  Old

It's ok Gaz and thanks

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed