Version 1.3.3 of category images ii was installed.
But I have error: plugin admin template could not be found /templates-admin/options-page.php when go to setting to enable it.
Version 1.3.3 of category images ii was installed.
But I have error: plugin admin template could not be found /templates-admin/options-page.php when go to setting to enable it.
I found another version that works fine here: http://downloads.wordpress.org/plugin/category-images-ii.zip
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'])This topic has been closed to new replies.