updated term option for uniqueness

This commit is contained in:
Robin Cornett
2015-01-07 19:08:49 -05:00
parent 521d2e02a3
commit 9b5da50918
5 changed files with 20 additions and 19 deletions
@@ -82,9 +82,9 @@ class Display_Featured_Image_Genesis_Common {
// taxonomy
elseif ( is_category() || is_tag() || is_tax() ) {
$t_id = $object->term_id;
$term_meta = get_option( "taxonomy_$t_id" );
$term_meta = get_option( "displayfeaturedimagegenesis_$t_id" );
if ( $term_meta ) {
$image_id = self::get_image_id( $term_meta['dfig_image'] );
$image_id = self::get_image_id( $term_meta['term_image'] );
}
}
// any singular post/page/CPT or there is no $item->fallback
@@ -104,9 +104,9 @@ class Display_Featured_Image_Genesis_Common {
foreach ( $terms as $term ) {
$t_id = $term->term_id;
$term_meta = get_option( "taxonomy_$t_id" );
if ( $term_meta['dfig_image'] ) {
$image_id = self::get_image_id( $term_meta['dfig_image'] );
$term_meta = get_option( "displayfeaturedimagegenesis_$t_id" );
if ( $term_meta['term_image'] ) {
$image_id = self::get_image_id( $term_meta['term_image'] );
break;
}
}