• Resolved jamesinagiantpeach

    (@jamesinagiantpeach)


    Here is my site: http://www.jameslanmanandthegoodhurt.com

    I was having it re-direct but now it’s just up out there in the open, and it’s not working right! In offline mode – everything worked great – I could click on “about” or “tour” in the Navigation bar and the individual content/style for each of those would show up – but now that it’s uploaded, every button on the nav menu just shows the front page when clicked. Is my header or index over-riding my page.php? I’m wondering what went wrong – I’m in new territory and could really someone’s expertise: Here is my page.php code

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <?php get_header(); ?>
    
    	<div id="content2">
    
    		<?php if (is_page('about')) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h4><?php the_title(); ?></h4>
    			<div class="single-entry">
    
    				<?php the_content(); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    
    	</div>
    
    <div id="tourschedule">
    
    		<?php if (is_page('tour')) : while (have_posts()) : the_post(); ?>
    
    		<?php the_title(); ?>
    
    		<table width="900px" table height="100%" cellpadding="10">
    
    								<h6>Upcoming Shows</h6>
    								<tr class="upcoming"><td>07.22.10</td><td>The Hard Rock Cafe EP Release Show!</td><td>Seattle, Wa</td><td><a href="http://www.hardrock.com/live2/eventDetails.aspx?LocationID=500&eventID=43403&MIBEnumID=3" target="-blank">Get Details</a></td></tr>
    
    								<td><h7>Some Recent Shows</h7></td>
    								<tr class="past"><td>06.12.10</td><td>Relay For Life</td><td>Bellevue, Wa</td><td></td></tr>
    								<tr class="past"><td>06.11.10</td><td>Chase On The Plaza</td><td>Los Altos, Ca</td><td></td></tr>
    								<tr class="past"><td>04.16.10</td><td>Slim's Last Chance</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>04.11.10</td><td>The Can Can</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>03.20.10</td><td>Luigi's Fun Garden</td><td>Sacramento, Ca</td><td></td></tr>
    								<tr class="past"><td>03.19.10</td><td>The Hotel Utah</td><td>San Francisco, Ca</td><td></td></tr>
    								<tr class="past"><td>03.17.10</td><td>The Jewelbox Theater</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>02.27.10</td><td>Private Performance</td><td>West Palm Beach, Fl</td><td></td></tr>
    								<tr class="past"><td>02.15.10</td><td>The Comet Tavern</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>02.07.10</td><td>Skylark</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>01.25.10</td><td>The High Dive</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>01.16.10</td><td>See Sound Lounge NEDA Benefit</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>01.05.10</td><td>ToST Lounge</td><td>Seattle, Wa</td><td></td></tr>
    								<tr class="past"><td>12.05.09</td><td>Nectar Lounge</td><td>Seattle, Wa</td><td></td></tr>
    							</table>
    
    		<?php endwhile; endif; ?>
    
    </div>
    
    <div id="blog">
    
    		<?php if (is_page('blog')) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h4><?php the_title(); ?></h4>
    			<div class="single-entry">
    
    				<?php the_content(); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    
    	</div>
    
    		<?php if (is_page('music')) : while (have_posts()) : the_post(); ?>
    
    <div id="bandcamp">
    <iframe src ="http://jlgh.bandcamp.com/" width="100%" height="850px" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no >
      <p>Your browser does not support iframes.</p>
    </iframe>
    </div>
    
    		<?php endwhile; endif; ?>
    
    		<?php if (is_page('contact')) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h4><?php the_title(); ?></h4>
    			<div class="single-entry">
    
    				<?php the_content(); ?>
    
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
  • Thread Starter jamesinagiantpeach

    (@jamesinagiantpeach)

    Okay – I think the problem had to do with a messy index.php and header.php taking over everything. But one other thing is this – I made different templates for EVERY page I wanted to display – and one really important note on doing that. DO NOT – make home.php… it’s one of the few names you can’t use in templates. Instead use, homepage.php or something.

    Problem resolved…for now, 🙂

Viewing 1 replies (of 1 total)

The topic ‘Calling Different Pages With Separate Content’ is closed to new replies.