• 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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter chezshire

    (@chezshire)

    I forgot to include a link (See I am a newb 😉 )

    Site Link

    Try sorting out the markup errors. You have mis-nested tags and unclosed tags.
    http://codex.wordpress.org/Validating_a_Website

    Thread Starter chezshire

    (@chezshire)

    I am aware and have tried for days now to resolve the mark up errors, but i can’t find any actual mark up erros, which makes me think i’ve done something wrong in my loop of my index page or something. And some errors completely baffle me – i don’t have a metacharset that i am aware of called ‘themekitty’. I don’t know where the heck that one is coming from and i’ve tried to google it to find out where so i can correct it. likewise th time stamp error i also can’t resolve.

    i still can’t get my aside over to the left properly 🙁

    Help?

    Errors listed below:

    Line 4, Column 28: Internal encoding declaration named an unsupported chararacter encoding themekitty.

    <meta charset=”ThemeKitty”>


    Error Line 4, Column 28: Bad value ThemeKitty for attribute charset on element meta: themekitty is not a valid character encoding name.

    <meta charset=”ThemeKitty”>

    Syntax of encoding name:
    An preferred encoding name according to the Encoding Standard. Example: utf-8

    Error Line 55, Column 44: Bad value 2013-Apr-Tue for attribute datetime on element time: The literal did not satisfy the time-datetime format.

    <p><small><time datetime=”2013-Apr-Tue”>Apr 16</time></small></p>

    for instance, you are calling the sidebar within the loop (<?php get_sidebar("right"); ?>); and you are opening the #content div in the loop (<div id="content" class="left"><!-- begin 'content' -->) but are only closing it after the loop.

    the loop starts with <?php while (have_posts()): //boolean function - returns true or false ?> and you could start with moving that line into the line directly before <?php the_post(); ?>

    review: http://codex.wordpress.org/The_Loop

    Thread Starter chezshire

    (@chezshire)

    This is what I attempted. I’m dyslexic, so it’s kind of hard to catch errors when i’m still really unfamiliar with this all. But i think that this is correct, but my results say otherwise 🙁

    <?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  -->
    	<div class="post_content 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 href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2><!-- //wp_function -->
    				<?php the_post_thumbnail(); ?>
    				<?php the_content();  ?><!-- gets the wsyiwig content editor -->
    				<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' -->
    	<?php get_sidebar("right"); ?>
    </div>
    
    <div class="clear"></div>
    <?php get_footer();?>

    I should also probably note that for all i know it’s not the loop tha tis the problem. I’ve really no idea, it just seems like a loop problem. I’ve looked through my code and i thought i’d terminated everything (close tags) but evidently not. 🙁

    Thread Starter chezshire

    (@chezshire)

    I’ve resolved the loop issue. this was my first time trying to execute one and it’s weird getting use to where you open and close stuff. I’m still trying to resolve the meta tag issues though. Can anyone tell me where the meta tag might be being generated in?

    this is the error i’m trying to find – it’s baffling me. I’ve looked in my css files ,etc. I’m just baffled.

    The character encoding specified in the HTTP header (utf-8) is different from the value in the <meta> element (themekitty). I will use the value from the HTTP header (utf-8) for this validation.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The South Beath Loop Diet: Posts get thinner and thinger and thinner….’ is closed to new replies.