Support » Plugin: Category Custom Fields » Can't call fields

  • Hi,

    i can’t call category fields to category page.
    I already try with code but i get this message:

    Fatal error: Call to undefined function categoryCustomFields_GetCategoryCustomField() in …

    Can you help?


Viewing 1 replies (of 1 total)
  • Laxman92


    Follow this step :


    $cat_name = get_query_var(‘cat’);
    $cat_ID = get_cat_ID( $cat_name );
    $url = categoryCustomFields_GetCategoryCustomField($cat_ID, ‘Banner Image’);

    /* The “$cat_ID” is a cat id and “Banner Image” is a field name */

    $url = explode(‘@’,$url[0]->field_value);
    echo $url = $url[0];


Viewing 1 replies (of 1 total)
  • The topic ‘Can't call fields’ is closed to new replies.