• Resolved Spencer Hill

    (@ws5f3dj7)


    Heya,
    So I’m confused as to why this code is pulling my posts into my home page instead of my home page content… Can someone help? You can view the site here: https://reservation-telephone-company.pivotgroupdev.com/ (it’s displaying the content to the lower left of the MyRTC graphic).

    <?php get_header(); ?>
    
    <div class="front-page">
    
    <!-- BEGINNIG OF ROW-2 -->
    <!-- BEGINNIG OF ROW-2 -->
    <!-- BEGINNIG OF ROW-2 -->
    <div class="row-2" style="background: transparent;"><?php tpc_slideshow_front_end('Front Page'); ?></div>
    
    <img class="smarter-better-faster-icon" src="<?php bloginfo('template_directory'); ?>/images/smarter-better-faster.png" />
    
    <!-- BEGINNIG OF ROW-3 -->
    <!-- BEGINNIG OF ROW-3 -->
    <!-- BEGINNIG OF ROW-3 -->
    <div class="row-3">
    
    	<!-- BEGINNING OF ROW-3-ROW-1 -->
    	<!-- BEGINNING OF ROW-3-ROW-1 -->
    	<div class="row-3-row-1">
    		<table>
    			<tr>
    				<td style="width: 45px;"></td>
    				<td class="row-3-row-1-col-1-voice"><a href="voice"></a></td>
    				<td class="row-3-row-1-col-1-data"><a href="data"></a></td>
    				<td class="row-3-row-1-col-1-video"><a href="video"></a></td>
    			</tr>
    		</table>
    
    		<img class="join-rtc" src="<?php bloginfo('template_directory'); ?>/images/join-rtc.png" />
    	</div>
    
    	<!-- BEGINNING OF ROW-3-ROW-1 -->
    	<!-- BEGINNING OF ROW-3-ROW-1 -->
    	<div class="row-3-row-2">
    
    		<!-- BEGINNING OR ROW-3-ROW-1-COL-1 -->
    
    		<div style="float:right;" class="row-3-row-2-col-2" href="<?php echo get_bloginfo('url'); ?>/rtc-live-news-feed/"><?php tpc_slideshow_front_end('RTC Live News Feed'); ?></div>
    
    		<table style="float:right;" class="row-3-row-2-col-1 show" border="0" cellspacing="0" cellpadding="0">
    			<tbody>
    				<tr>
    					<!--[if gte IE 7]><td style="width: 40px;"></td><![endif]-->
    					<td><a href="https://ebill.restel.com/siscss/pb/logonRedirect.do" target="_blank"><img class="alignnone size-full wp-image-585" title="e-bill-icon" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-e-bill-icon.png" alt="" width="80" height="42" /></a></td>
    					<td><a href="calendar"><img class="alignnone size-full wp-image-586" title="calendar-icon" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-calendar-icon.png" alt="" width="80" height="42" /></a></td>
    					<td><a href="https://login.postini.com/" target="_blank"><img class="alignnone size-full wp-image-587" title="message-center-icon" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-message-center-icon.png" alt="" width="78" height="42" /></a></td>
    				</tr>
    				<tr>
    					<!--[if gte IE 7]><td style="width: 40px;"></td><![endif]-->
    					<td><a href="resources"><img class="alignnone size-full wp-image-588" title="resources-icon" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-resources-icon.png" alt="" width="80" height="42" /></a></td>
    					<td><a href="https://sitebuilder.restel.com/sebase/common_login.jsp?uno=97383218&lang=en" target="_blank"><img class="alignnone size-full wp-image-589" title="site-builder-icon" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-site-builder-icon.png" alt="" width="80" height="42" /></a></td>
    					<td><a href="https://pop3.restel.com/" target="_blank"><img class="alignnone size-full wp-image-590" title="email-access" src="<?php bloginfo('template_directory'); ?>/images/my-rtc-email-access.png" alt="" width="80" height="42" /></a></td>
    				</tr>
    			</tbody>
    		</table>
    
    		<!-- BEGINNING OR ROW-3-ROW-1-COL-2 -->
    		<img src="<?php bloginfo('template_directory'); ?>/images/front-page-row-3-row-1-col-1-static.png" class="hide" style="position: absolute;" />
    
    	</div><!-- END OF ROW-3-ROW-1 -->
    
    	<!-- BEGINNING OF ROW-3-ROW-2 -->
    	<!-- BEGINNING OF ROW-3-ROW-2 -->
    	<div class="row-3-row-3">
    		<!-- This posts the primary page content for "Pages" and "Posts" -->
    		<?php
    		if (have_posts()) :
    			while (have_posts()) : the_post();
    				the_content('Read the rest of this entry &raquo;');
    			endwhile;
    		endif;
    		?>
    	</div>
    
    </div><!-- END OF ROW-3 -->
    
    </div><!-- END OF FRONT-PAGE -->
    
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_content() pulling posts instead of page content, need help…’ is closed to new replies.