WordPress.org

Ready to get started?Download WordPress

Forums

Category Meta plugin
Doesn't Call Anything From DB (1 post)

  1. mburak
    Member
    Posted 3 years ago #

    Hi, I really need this plugin to show and orginise category images. I tried this plugin on both WP 3.0 & WP 3.1. Everything goes fine in admin panel but when it comes to show meta on category page,

    if (function_exists('get_terms_meta'))
    {
        $metaValue = get_terms_meta($category_id, $meta_key);
    }

    code shows nothing. When i try to change this code like;

    global $wp_query;
    $cat = $wp_query->get_queried_object();
    $category_id = $cat->term_id;
    
    if (function_exists('get_terms_meta')) {
        $my_decription_value = get_terms_meta($category_id, 'my_description');
        echo $my_decription_value;
    }

    shows just "Array" text.

    So can anyone help me about this issue?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic