Static Post Page Screwing Up Layout

  • Unknown's avatar

    So I have my site setup to have a static front page and a static posts page. The Front page works fine, images display as they should. The Posts page (on my site, it’s the News link on top) however is not displaying properly. The image links all insist on going to a http://www.mcfilmmakers.com/test/news/wp-content/themes/MCFM/images/ directory, which doesn’t exist! Like on the front page, all images are in http://www.mcfilmmakers.com/test/wp-content/themes/MCFM/images/ (notice that the /news/ isn’t there).

    So my question is, how do I get wordpress to stop insisting on a news directory? When I try editing the location of my images, the blog refuses to reflect the changes. Oddly enough though, if I decide to not have a static post page, the news page works fine but won’t display any posts!

    Got to http://www.mcfilmmakers.com/test to see what I’m talking about.

    The code of my news page:

    <?php
    /*
    Template Name: Info
    */
    ?>
    
    <?php get_header(); ?>
    
    <table id="Table_01" width="766" height="730" border="0" cellpadding="0" cellspacing="0" background="../wp-content/themes/MCFM/images/bg.gif">
    	<tr>
    		<td rowspan="3">
    			<img src="../wp-content/themes/MCFM/images/logo.png" width="226" height="730" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/topshortbar.gif" width="18" height="115" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/topshortbar.gif" width="18" height="115" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/topshortbar.gif" width="18" height="115" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/topshortbar.gif" width="18" height="115" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/topshortbar.gif" width="18" height="115" alt=""></td>
    		<td rowspan="3" bgcolor="7d7d7d" background="../wp-content/themes/MCFM/images/bg2.gif" width="412" height="730" alt="">
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
                    </td>
    
    		<td rowspan="3">
    			<img src="../wp-content/themes/MCFM/images/longbar.gif" width="18" height="730" alt=""></td>
    		<td rowspan="3" width="20" height="730" alt=""></td>
    	</tr>
    	<tr>
    		<td bgcolor="000000">
    			<img src="../wp-content/themes/MCFM/images/menu/1Aportraits.gif" width="18" height="148" alt=""></td>
    		<td bgcolor="000000">
    			<img src="../wp-content/themes/MCFM/images/menu/2Astreet.gif" width="18" height="148" alt=""></td>
    		<td bgcolor="000000">
    			<img src="../wp-content/themes/MCFM/images/menu/3Adigital.gif" width="18" height="148" alt=""></td>
    		<td bgcolor="000000">
    			<img src="../wp-content/themes/MCFM/images/menu/4Avideo.gif" width="18" height="148" alt=""></td>
    		<td bgcolor="000000">
    			<img src="../wp-content/themes/MCFM/images/menu/5Ahome.gif" width="18" height="148" alt=""></td>
    	</tr>
    	<tr>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/btmlongbar.gif" width="18" height="467" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/btmlongbar.gif" width="18" height="467" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/btmlongbar.gif" width="18" height="467" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/btmlongbar.gif" width="18" height="467" alt=""></td>
    		<td>
    			<img src="../wp-content/themes/MCFM/images/btmlongbar.gif" width="18" height="467" alt=""></td>
    	</tr>
    </table>
    
    <?php get_footer(); ?>

    As you can see, I used ../ for all images, thinking it would send the right url for the images but wordpress won’t listen!

    Any help would be greatly appreciated.

  • Unknown's avatar

    You’re almost in the right spot for help, but not quite. You need to be at the forum for self-hosted blogs:

    http://wordpress.org/support

    This forum is for free blogs hosted by wordpress.com and we use very different software.

  • The topic ‘Static Post Page Screwing Up Layout’ is closed to new replies.