Title: how make category list shortcode
Last modified: August 21, 2016

---

# how make category list shortcode

 *  [klickarie](https://wordpress.org/support/users/klickarie/)
 * (@klickarie)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/how-make-category-list-shortcode/#post-4088267)
 * Have you reviewed the [Shortcode_API](http://codex.wordpress.org/Shortcode_API)?
 *  Thread Starter [klickarie](https://wordpress.org/support/users/klickarie/)
 * (@klickarie)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/how-make-category-list-shortcode/#post-4088306)
 * thank’s [@esmi](https://wordpress.org/support/users/esmi/) i will try.. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how make category list shortcode’ is closed to new replies.

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [klickarie](https://wordpress.org/support/users/klickarie/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/how-make-category-list-shortcode/#post-4088306)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
