Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

getCatParentContent

// Add Shortcode
function getCatParentContent( $atts ) {

	// Attributes
	extract( shortcode_atts(
		array(
			'parent_slug' => '',
			'content_to_return' => '',
		), $atts )
	);

	// Code
$idObj = get_category_by_slug( $parent_slug);
return $idObj->$content_to_return;
}
add_shortcode( '5head_get_parent_cat_content', 'getCatParentContent' );