mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 14:03:20 +09:00
Update term meta retrieval method
Necessary for G 2.2.7. This maintains backwards compatibility for users running earlier WP/G versions.
This commit is contained in:
@@ -190,10 +190,10 @@ class Display_Featured_Image_Genesis_Common {
|
||||
$title = get_post( $postspage )->post_title;
|
||||
} elseif ( is_category() || is_tag() || is_tax() ) {
|
||||
$term = is_tax() ? get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ) : get_queried_object();
|
||||
if ( ! $term || ! isset( $term->meta ) ) {
|
||||
if ( ! $term ) {
|
||||
return;
|
||||
}
|
||||
$title = $term->meta['headline'];
|
||||
$title = displayfeaturedimagegenesis_get_term_meta( $term, 'headline' );
|
||||
if ( empty( $title ) && $a11ycheck ) {
|
||||
$title = $term->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user