Devam Ediyor

480824 WordPress - Hierarchical taxonomy list

Hi,

I need help getting my custom taxonomy category list working in a hierarchcal way.

Here is the hierarchical structure for the the taxonomy "departments"

- TV's

---- LCD TV's

------ 40' LCD TV's

------ 60' LCD TV's

---- Plasma TV's

------ 40' Plasma TV's

------ 60' Plasma TV's

---- LED TV's

------ 40' LED TV's

------ 60' LED TV's

- Audio

---- Sound Systems

---- Speakers

- Computers

---- Mac

---- PC's

What I want to do is display in the list menu the parent items and the children of the current selected category.

For example, this is how the menu should like on the home page:

- TV's

- Audio

- Computers

If I click the TV's Link, the menu on the loaded page will become:

- TV's

---- LCD TV's

---- Plasma TV's

---- LED TV's

- Audio

- Computers

Then, If I click on "LCD TV's", the menu on the loaded page will become:

- TV's

---- LCD TV's

------ 40' LCD TV's

------ 60' LCD TV's

---- Plasma TV's

---- LED TV's

- Audio

- Computers

I don't want to use Javascript to resolve this problem.

Here is what I have right now, but it only displays all the items in a hierarchic way:

<?php

$taxonomy = 'departments';

$orderby = 'id';

$hierarchical = 1;

$args = array(

'taxonomy' => $taxonomy,

'orderby' => $orderby,

'hierarchical' => $hierarchical,

);

?>

<ul>

<?php wp_list_categories( $args ); ?>

</ul>

Please help! :)

Will pay as soon as I get a working solution.

Beceriler: Her şey Kabul, PHP, WordPress

Daha fazlasını görün: wordpress structure, wordpress audio, taxonomy, led display, children audio sound, orderby custom, wordpress category parent, sound solution, audio problem, children menu, wordpress custom structure, wordpress soon, php wordpress javascript, taxonomy wordpress, link javascript wordpress, wordpress category menu, javascript menu wordpress, custom wordpress category page, custom category menu, wordpress custom taxonomy, custom taxonomy category, led lcd, lcd menu, custom taxonomy, javascript problem solution

İşveren Hakkında:
( 0 değerlendirme ) Montreal,

Proje NO: #2226734