[ad_1]
Hi,
Since WP does not have a default featured image for category pages and TSF already has a social image area for category pages. I’d like to use TSF social images as the featured images for category. It can also save me some time so both the images are the same.
I’d like to pull the category title, description and image from category page to make a header template, the question is how to pull the image?
The example code is :
function example_function_name() {
if (is_category()){
$cat_id = get_query_var('cat');
$cat_title = single_cat_title( '', false );
$cat_description = category_description($cat_id);
#cat_image = ## Need to pull social images from TSF settings
echo "found" . $cat_id . $cat_des . $cat_title;
} }Looking for your response thanks.
