btw. I don’t know why but I’m not able to display the content of the category by using this:
<?php
global $enhanced_category;
//get enhanced category post and set it up as global current post
$enhanced_category->setup_ec_data();
?>
<!-- enhanced category content -->
<?php the_post_thumbnail("medium"); ?>
<?php get_template_part( 'content', 'page' ); ?>
<!-- custom fields -->
<?php
get_post_custom();
?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
instead I had to include() the content-ecp.php file directly, and it’s now working.
never mind. figure it out.
<?php
$banner_img = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'full' );
echo $banner_img[0]; // returns only the url of the full image.
?>