Support » Plugin: Category and Taxonomy Meta Fields » To display the key-value dynamically without writing category id ?

  • Raaz

    (@raazxploreryahoocom)


    I there any way that I can display the category custom fields without mentioning category_id i.e. any code to check the category id dynamically rather mention it..

    For example, I have 50 categories in my site and I want every category will have 7-8 custom fields like; suffix/prefix to the page title tag, category image, textarea below the post loop etc.. In that case I wanted to edit only the category.php/archive.php file so that it detects the category dynamically to show the respective fields..

    Need the solution urgently.. please help

    = = = =
    if (function_exists(‘wp_get_terms_meta’))
    {
    $MetaValue = wp_get_terms_meta($meta_key ,true);
    }
    //meta value for meta key $meta_key
    echo $metaValue;
    = = = =

    The page I need help with: [log in to see the link]

  • The topic ‘To display the key-value dynamically without writing category id ?’ is closed to new replies.