<article id="post-<?php the_ID(); ?> " <?php post_class('clearfix with-entry-wrap'); ?> > <?php $ft_image_atts = array('fallback_to_first_attached' => false); echo cudazi_featured_image($ft_image_atts); ?> <div class="entry-wrap"> <header class="entry-header"> <h2 class="entry-title"> <?php $content = apply_filters('the_content', get_the_content()); $content = preg_match_all('/href\\s*=\\s*[\\"\']([^\\"\']+)/', $content, $links); $content = $links[1][0]; echo sprintf("<a href='%s' title='%s'>%s</a>", $content, __('Visit: ' . $content, 'cudazi'), get_the_title()); ?> </h2> <div class="post-format-icon"></div> <time class="entry-date" datetime="<?php the_time('c'); ?> " pubdate="pubdate" title="<?php the_time(get_option('date_format')); ?> "> <?php
<article id="post-<?php the_ID(); ?> " <?php post_class('clearfix with-entry-wrap'); ?> > <?php $ft_image_atts = array('fallback_to_first_attached' => false); $featuredImage = cudazi_featured_image($ft_image_atts); //var_dump(get_defined_vars()); if ($featuredImage) { ?> <div class='featured-image'> <a href='<?php echo the_permalink(); ?> '> <img src='<?php echo $featuredImage['image']; ?> ' alt='<?php echo the_title_attribute(array('echo' => 0)); ?> ' /> </a> <h2 class="entry-title"><?php the_title(); ?>