Get customize categories in wordpress

The following example will show the categories with checkbox

‘child_of’ => ‘1’,
‘hide_empty’ => ‘0’
$categories = get_categories($args);
foreach($categories as $key => $value){
<label><input name=”escorts_category[]” value=”<?php echo $categories[$key]->cat_ID; ?>” type=”checkbox”> <?php echo $categories[$key]->name; ?></label><br />
<?php } ?>

For more information click here

Bansal Sumit

To seek challenging roles and to achieve excellence in the field of Open Source Web Technology with a profound spirit of commitment and dedication.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *