Need help? Check out our Support site, then


Featured Images with Excerpts

  1. atlanticstates
    Member

    I am having trouble inserting the featured image in a homepage post slider that I have on a homepage. I can only get the image to show at the top of the posts as opposed to showing next to their respective excerpt. Any help would be greatly appreciated....

    <div class="nine columns">
    
    			<div class="row" id="homecategoryheaders">
    			</div>
    
    			<?php
    				$args = array(
    					'posts_per_page' => 4,
    					'category_name' => 'home',
    					'orderby' => 'date',
    					'order' => 'DESC'
    				);
    				$myquery = new WP_Query($args);
    			?>
    			<?php $a_aslf_news = array(); ?>
    			<?php while ($myquery->have_posts()) : $myquery-     >the_post(); ?>
    			<?php
    
    				$mypost = '<div class="homepost"><h3><a href="'.get_permalink().'" title="Permalink to '.get_the_title().'" rel="bookmark">'.get_the_title().'</a></h3>';
    				$mypost .= '<div class="excerpt">' . get_the_excerpt() . '</div>';
    				$mypost .= '<a href="'.get_permalink().'" title="Permalink to ' . get_the_title() . '" rel="bookmark">Read More</a>';
    				$mypost .= '</div>';
    				$a_aslf_news[] = $mypost;
    			?>
    			<?php endwhile; ?>
    
    			<?php for($i = 0; $i < 4; $i++): ?>
    				<div class="row">
    					<div class="twelve<?php echo ($i > 0 ? ' bordertop' : '') ?>">
    						<?php echo $a_aslf_news[$i] ?>
    					</div>
    				</div>
    			<?php endfor; ?>
    		</div>
  2. That is not a free hosted WordPress.com blog. We provide support only for free hosted WordPress.COM blogs being hosted right here on this multiuser blogging platform. You are posting to the wrong support forum.

    WordPress.com and WordPress.org have different log-ins and run different versions of themes with same names. If you don't have a username account at WordPress.ORG click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the support forums there and receive advice from WordPress.ORG bloggers.

Topic Closed

This topic has been closed to new replies.

About this Topic