<pre class="lang:php decode:true  " title="List Categories">$cat_args = [
		'hierarchical' =&gt; true,
		'title_li'     =&gt; '',
		'hide_empty'   =&gt; true,
	];
	?&gt;
		&lt;ul class="category-list"&gt;
			&lt;?php wp_list_categories( $cat_args ); ?&gt;
		&lt;/ul&gt;
	&lt;?php</pre>
&nbsp;