Edit:
It still fails, even if I hardcore a category ID into it.
$content .= $taxonomy_images_plugin->get_image_html( 'fullsize', 4 );
Try this at the top of your theme file:
global $taxonomy_images_plugin;
Hello mfields,
I have the same problem on my test site. I use the Theme “Hybrid Structure” (child theme of Hybrid).
http://themehybrid.com/themes/structure
It does work perfectly when I add the code in “post.php” in the parent theme directory (without the global declaration). However, it doesn’t work when I add it in “function.php” of the child theme, even if I add the global declaration at the top of “function.php”.
I’m not really good in php programming, maybe I missed something concerning global variable declaration?
Thank you so much for your great plugin! Even in beta version, it answered many of my needs and simplified a lot my work.
However, it doesn’t work when I add it in “function.php” of the child theme, even if I add the global declaration at the top of “function.php”
Are you using the object in a function? if so, you will need to declare it as global inside the function’s definition like:
<?php
function my_function(){
global $taxonomy_images_plugin;
/* Other stuff */
}
Hope this helps,
-Mike