giusers
11-11-2015, 23:11
Vorrei (in un menu a tendina) che le categorie venissero ordinate:
Le categorie genitrici in ordine alfabetico;
le sottocategorie sempre in ordine alfabetico ma sotto le corrispettive categorie genitrici.
Il codice per per modificare questa opzioni č questo, ma ci capisco poco, qualcuno sa qualcosa di pių?:)
function wp_list_categories( $args = '' ) {
$defaults = array(
'show_option_all' => '', 'show_option_none' => __('No categories'),
'orderby' => 'name', 'order' => 'ASC',
'style' => 'list',
'show_count' => 0, 'hide_empty' => 1,
'use_desc_for_title' => 1, 'child_of' => 0,
'feed' => '', 'feed_type' => '',
'feed_image' => '', 'exclude' => '',
'exclude_tree' => '', 'current_category' => 0,
'hierarchical' => true, 'title_li' => __( 'Categories' ),
'echo' => 1, 'depth' => 0,
'taxonomy' => 'category'
);
Le categorie genitrici in ordine alfabetico;
le sottocategorie sempre in ordine alfabetico ma sotto le corrispettive categorie genitrici.
Il codice per per modificare questa opzioni č questo, ma ci capisco poco, qualcuno sa qualcosa di pių?:)
function wp_list_categories( $args = '' ) {
$defaults = array(
'show_option_all' => '', 'show_option_none' => __('No categories'),
'orderby' => 'name', 'order' => 'ASC',
'style' => 'list',
'show_count' => 0, 'hide_empty' => 1,
'use_desc_for_title' => 1, 'child_of' => 0,
'feed' => '', 'feed_type' => '',
'feed_image' => '', 'exclude' => '',
'exclude_tree' => '', 'current_category' => 0,
'hierarchical' => true, 'title_li' => __( 'Categories' ),
'echo' => 1, 'depth' => 0,
'taxonomy' => 'category'
);