Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aftab Husain

    (@amu02aftab)

    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

    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.