how make category list shortcode
-
I want to create a shortcode from the following code
<div class="home-side"> <h3>CATEGORIES</h3> <?php //list terms in a given taxonomy using wp_list_categories (also useful as a widget) $orderby = 'name'; $show_count = 0; // 1 for yes, 0 for no $pad_counts = 0; // 1 for yes, 0 for no $hierarchical = 1; // 1 for yes, 0 for no $taxonomy = 'jenis'; $title = ''; $args = array( 'orderby' => $orderby, 'show_count' => $show_count, 'pad_counts' => $pad_counts, 'hierarchical' => $hierarchical, 'taxonomy' => $taxonomy, 'title_li' => $title ); ?> <ul> <?php wp_list_categories($args); ?> </ul> </div>[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
please help me how to ..
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘how make category list shortcode’ is closed to new replies.