The South Beath Loop Diet: Posts get thinner and thinger and thinner….
-
I’m not sure what my malfunction is, but my posts are currently on a nasty diet it seems, e.g. Each post is inheriting the porproption width of the last. Thus if the first post is 80% of X, the next post is 80% of the post before which is 80% of x making the second post 72% or so of X (or something like that).
I want them (the posts) to all be the same width, i think i’ve done soemthing wrong in the index.php file.
this is my code (help is very appreciated -i’m new to this stuff, be kind 😉
<?php get_header();?> <div id="page"> <?php if(have_posts()): //boolean function - returns true or false // semicolon replaces curly brace statements ?> <?php while (have_posts()): //boolean function - returns true or false ?> <!-- HTML HERE --> <!-- 'right' is the end of the file name, e.g. sidebar-right.php --> <?php get_sidebar("right"); ?> <div id="content" class="left"><!-- begin 'content' --> <?php the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class("standard_post"); //give us all of wordpress classes ?>> <h2><a>"><?php the_title(); //wp_function ?></a></h2> <?php the_post_thumbnail(); ?> <p><?php the_content(); //gets the wsyiwig content editor ?></p> <p>Written by <?php the_author(); ?></p> <p><small><time datetime="<?php the_time('Y-M-D'); ?>"><?php the_time('M j'); ?></time></small></p> <?php comments_number("0 comments", "1 comment", "% comments") ?> </article> <?php endwhile; else: ?> <!-- Combines endwhile + else statement --> <!-- HTML HERE --> <p>Add Posties</p> <?php endif; ?> </div><!-- end 'content' --> </div> <div class="clear"></div> <?php get_footer();?>
[Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code has now been permanently damaged/corrupted by the forum’s parser.]
Thanks you one and all.
- The topic ‘The South Beath Loop Diet: Posts get thinner and thinger and thinner….’ is closed to new replies.