[Plugin: Taxonomy Images] get_option( 'taxonomy_image_plugin' ) returns IDs off by one
-
When I put the following in my theme:
<?php $type_images = get_option( 'taxonomy_image_plugin' ); echo '<pre>'; var_dump( $type_images ); echo '</pre>'; ?>
I get the output:
array(3) { [41]=> int(200) [42]=> int(201) [44]=> int(202) }
I’m confused because the IDs in this array (41,41,44) are wrong by 1. There are three terms on the site with images (40,41,43) associated with images (those image IDs are right).
Is this the expected behavior? I can resolve the problem by subtracting one from each ID, but that makes me nervous!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Taxonomy Images] get_option( 'taxonomy_image_plugin' ) returns IDs off by one’ is closed to new replies.