Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

process featured image?

$
0
0

i am building a view to replace my theme's output for the homepage and would like to process the featured image like my theme (elegant themes theme) does. it makes everything uniform. is there any way I can accomplish this through views?

   $thumb = '';
        $width = (int) apply_filters('et_image_width',481);
        $height = (int) apply_filters('et_image_height',230);
        $classtext = '';
        $titletext = get_the_title();
        $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Entry');
        $thumb = $thumbnail["thumb"];
      ?>
      <?php if ( '' != $thumb && 'on' == get_option('trim_thumbnails_index') ) { ?>
        <div class="featured_box">
          <a href="<?php the_permalink(); ?>">
            <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
          </a>

Viewing all articles
Browse latest Browse all 20145

Trending Articles