# blockspare/2.6.6/inc/block-posts-config/tax-category.php

BlockSpare – Gutenberg Blocks, AI Content Generator &amp; Site Builder for News, Magazine &amp; Blogs, version 2.6.6. 32 lines.

- Page: https://pluginprobe.com/plugins/blockspare/2.6.6/code/inc/block-posts-config/tax-category.php
- Raw: https://pluginprobe.com/plugins/blockspare/2.6.6/raw/inc/block-posts-config/tax-category.php
- Modified: 2023-09-07T10:20:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockspare/2.6.6/code/inc/block-posts-config/tax-category.php#L10-L20`.

```php
<?php
if(!function_exists('blockspare_get_cat_tax_tags')){
    function blockspare_get_cat_tax_tags ($taxType,$post_id){
        
        
                $categories_list = get_the_category_list(' ', '', $post_id);
                    if ( $categories_list ) {
                                    /* translators: 1: list of categories. */
                            printf(  esc_html__( '%1$s', 'blockspare' ), $categories_list ); // WPCS: XSS OK.
                        }
        
        
        // if($taxType =='post_tag'){
        //     $tag_lists = get_the_tag_list(' ', '', $post_id);
        //         if ( $tag_lists ) {
        //                         /* translators: 1: list of categories. */
        //                 printf(  esc_html__( '%1$s', 'blockspare' ), $tag_lists ); // WPCS: XSS OK.
        //             }
        // }
        
        /*
            $terms = get_the_terms($post_id , $taxType );
                if($terms){
                    foreach($terms  as $trem){ ?>
                        <a herf="" ><?php echo $trem->name; ?></a> 
                      <?php 
                    }
                }
                */
        
    }
}
```
