• Hello everyone,

    Need a quick tip on how change the order of featured image and post title. Currently the featured image shows first then the title. I want it vice versa.

    This is page.php temp I have:

    <?php
    /**
     * The template for displaying pages
     */
    ?>
    <?php get_header(); ?>
    	<div class="content" role="main">
    		<div class="inner">
    			<?php while ( have_posts() ) : the_post(); ?>
    				<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    					<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
    					<div class="featured-image">
    						<?php the_post_thumbnail(); ?>
    					</div>
    					<?php endif; // has_post_thumbnail() ?>
    					<div class="entry-box">
    						<header class="entry-header">
    							<h1 class="page-title"><?php the_title(); ?></h1>
    							<?php edit_post_link( __( 'Edit', 'jgtblogbox' ), '<div class="entry-meta">', '</div>' ); ?>
    						</header><!-- .entry-header -->
    						<div class="entry-content">
    							<?php
    								the_content();
    								wp_link_pages(
    									array(
    										'before' => '<p class="page-links">' . __( 'Pages:', 'jgtblogbox' ),
    										'after' => '</p>',
    										'link_before' => '<span class="page-link">',
    										'link_after' => '</span>'
    								) );
    							?>
    						</div><!-- .entry-content -->
    					</div><!-- .entry-box -->
    				</article><!-- #post -->
    				<?php comments_template(); ?>
    			<?php endwhile; ?>
    		</div><!-- .inner -->
    	</div><!-- .content -->
    <?php get_footer(); ?>
  • The topic ‘Title and Featured Image Order’ is closed to new replies.