Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Dashnorth

    (@dashnorth)

    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.

    Thread Starter Dashnorth

    (@dashnorth)

    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.
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Image only URL without HTML’ is closed to new replies.