How to show brands logo image in single brand template page
-
i want to show the specific brand logo in the brand page
i see in shortcodes only the brands list shortcode
but no shortcodes for sigle brand pages or for images
so maybe i can add php code to funtion php and then use shotcode to get only the brand image dynamically based what brand page is.
i tried something like this
function display_brand_logo() {
$brand = get_queried_object();
if ( ! empty( $brand->term_id ) ) {
$brand_logo = pwb_brand_logo( $brand->term_id, ‘full’ );
if ( ! empty( $brand_logo ) ) {
return $brand_logo;
}
}
return ”;
}
add_shortcode( ‘display_brand_logo’, ‘display_brand_logo’ );thats not working and whowing critacl error.
The page I need help with: [log in to see the link]
- The topic ‘How to show brands logo image in single brand template page’ is closed to new replies.