Bantuan » Komunitas WordPress Indonesia » Komunitas Pengembang & Desainer » [help] display category dari post type ( ada parent dan child category )

Melihat 2 balasan - 1 sampai 2 (dari total 2)
  • bisa gunakan wp_list_categories();
    `<?php $args = array(
    ‘show_option_all’ => ”,
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘style’ => ‘list’,
    ‘show_count’ => 0,
    ‘hide_empty’ => 1,
    ‘use_desc_for_title’ => 1,
    ‘child_of’ => 1,
    ‘feed’ => ”,
    ‘feed_type’ => ”,
    ‘feed_image’ => ”,
    ‘exclude’ => ”,
    ‘exclude_tree’ => ”,
    ‘include’ => ”,
    ‘hierarchical’ => 1,
    ‘title_li’ => __( ‘Categories’ ),
    ‘show_option_none’ => __(‘No categories’),
    ‘number’ => null,
    ‘echo’ => 1,
    ‘depth’ => 0,
    ‘current_category’ => 0,
    ‘pad_counts’ => 0,
    ‘taxonomy’ => ‘category’,
    ‘walker’ => null
    );
    wp_list_categories($args );
    ?>

    info lebih lanjut http://codex.wordpress.org/Template_Tags/wp_list_categories

    oke mas hadie, terima kasih udah kasih saran.. 🙂

Melihat 2 balasan - 1 sampai 2 (dari total 2)
  • Topik ‘[help] display category dari post type ( ada parent dan child category )’ tertutup untuk balasan baru.