Add or Create category dropdown menu in WordPress
Hear is the simplest way to adding all of your categories in main navigation dynamically in WordPress. You don’t need to add them manually in menu list.
With the help of wp_list_categories function you can fetch all categories in UL LI tag combination, so that you can add them in your main navigation also.
1 2 3 4 5 6 7 8 9 |
<?php $args = array( 'hierarchical' => true, 'hide_empty' => 0, 'title_li' =>'<a>Categories</a>' ); wp_list_categories($args); ?> |
[paypal-donation]