custom taxonomy – i see a blank page while trying to log in to your WordPress site, check your web in this line 13 (

Question

<ul class="inner stm_products_<?php echo intval($per_row); ?>_columns">
    <?php
        $taxonomy = 'products_category';
        $terms = get_terms( array( 'taxonomy' => $taxonomy, 'parent' => 0,  'number' => $number ) );
    ?>

    <?php foreach ( $terms as $term ) { ?>
        <?php
            $term_id = $term->term_id;
            $image_id = get_term_meta($term_id, 'pearl_products_category_image', true);
        ?>
        <li>
            <a href="<?php echo get_term_link($term->slug, $taxonomy); ?>">
                <?php echo pearl_get_VC_attachment_img_safe($image_id, $image_size); ?>
                <span class="product_cat_info">
                    <span class="product_cat_title"><?php echo sanitize_text_field($term->name); ?></span>
                    <span class="product_cat_description"><?php echo wp_kses_post($term->description); ?></span>
                </span>
            </a>
        </li>
    <?php } ?>

</ul>

0
fuxia 2 months 2021-07-30T16:24:50-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse