$category_id ?
-
First of all, million thanks to the author for providing this plugin! Really needed more than just image to taxonomy…
It will sound silly, but I need help with figuring out what “category_id” this plugin means.
<?php //get tag slug from url $current = basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)); //get tag id from slug $current_slug = get_term_by('slug', $current, 'post_tag'); $current_id = $current_slug->term_id;?> <div class="tag_profile"> <?php echo $current_id ?> <?php if (function_exists('wp_get_terms_meta')) {$metaValue = wp_get_terms_meta($current_id, $profile); }?></div>
I get 4 from echoing $current_id, but text or image is not showing up.
I checked all terms with provided php code by but it returned nothing.https://www.ads-software.com/plugins/wp-custom-taxonomy-meta/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘$category_id ?’ is closed to new replies.