Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thedayforlove

    (@thedayforlove)

    I found another version that works fine here: https://downloads.www.ads-software.com/plugin/category-images-ii.zip

    Thread Starter thedayforlove

    (@thedayforlove)

    After viewing the code, I have changed something as follow
    On template-tags.php, line 62
    From
    $term_ids = explode( ',', $r['term_ids'] );

    To
    $term_ids = explode( ',', $r['category_ids'] );

    Line 72
    From
    if ( ! $r[ 'echo' ] )
    To
    if ($r[ 'echo' ] == 'false' )

    On class-Category-Images-II.php, line 220, add this code:

    if($args['echo']=='false'){
    return $terms;
    }

    You can use function like this

    $img = ciii_category_images('category_ids=11&term_ids=true&echo=false&size=original');
    var_dump($img[0]['image'])
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Taxonomy Images II] plugin admin template could not be found’ is closed to new replies.