Title: Please help with correct php code
Last modified: September 7, 2016

---

# Please help with correct php code

 *  [nicholasfush](https://wordpress.org/support/users/nicholasfush/)
 * (@nicholasfush)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/please-help-with-correct-php-code/)
 * What should be the php code in this case?
     Screenshot [http://joxi.ru/V2VdoEyteOqYrv.jpg](http://joxi.ru/V2VdoEyteOqYrv.jpg)
    -  This topic was modified 9 years, 8 months ago by [nicholasfush](https://wordpress.org/support/users/nicholasfush/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Aftab Husain](https://wordpress.org/support/users/amu02aftab/)
 * (@amu02aftab)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/please-help-with-correct-php-code/#post-8166595)
 * Hi,
 * You can use below code to output meta value for ‘suki’
 *     ```
       if (function_exists('wp_get_terms_meta'))
       { 
         $MetaValue = wp_get_terms_meta($category_id, 'suki' ,true); 
       } 
   
       // Be sure $category_id is 'category/term id' , you are putting correct.
   
       //meta value for meta key $meta_key
       echo $metaValue; 
       ```
   
 * Thanks,
    Aftab
 *  [rkv710](https://wordpress.org/support/users/rkv710/)
 * (@rkv710)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/please-help-with-correct-php-code/#post-8267874)
 * Hi Aftab,
 * Thanks for creating the plugin.
 * If we have to put banner at the top of the 100 categories or 100 archive pages;
   we have to mention 100 category/term id.
 * From where to find the category id and the term id?
 * Category id from the url and term is the slug. Is it?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Please help with correct php code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-taxonomy-meta_4c878c.svg)
 * [Category and Taxonomy Meta Fields](https://wordpress.org/plugins/wp-custom-taxonomy-meta/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-taxonomy-meta/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-taxonomy-meta/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-taxonomy-meta/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-taxonomy-meta/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-taxonomy-meta/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aftab Husain](https://wordpress.org/support/users/amu02aftab/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/please-help-with-correct-php-code/#post-8166595)
 * Status: not resolved