• I finally got upgraded from 1.2 to 1.5 and now I am having a small issue. If you take a look at my blog at https://un-blurred.org you will see that my first entry is formatted correctly but none of the others are. If someone can find out what my issue is, please let me know, thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Looks fine to me in both IE and Firefox. What issue are you seeing, and what browser/version?

    Thread Starter unblurred

    (@unblurred)

    I am using the newest version of Firefox, the brown background to the header where it has the date and blog title is only brown on the first post on the page.

    OK, your issue is that a table is used in there. You need to use a DIV to wrap the post header. Can you post the content of the Loop? It looks like some of the table stuff isn’t being looped.

    I would strongly advise against using tables for layout in the first place, but it should be OK if you can get them out of the loop.

    Thread Starter unblurred

    (@unblurred)

    I did plan on switching to all div layers since I just learned it and it is so much cleaner. Would you, or anyone else, be able to verify that all my WordPress coding is still good to go? I always worry I deleted something important ??

    Your template is quite a mess: tables, divs, paragraphs without any logic (at least for me). And a lot of errors.

    That background you are missing is for a class “td” but it’s found only once in your source code.

    Thread Starter unblurred

    (@unblurred)

    I am going to try and convert to div layers and see if that fixes it. I will also try to clean it up in the process, I was trying to get my layout up and working quick so I didn’t take a lot of time.

    Thread Starter unblurred

    (@unblurred)

    I have cleaned up things a bit and got rid of all tables. Everything is a div layer and a header, sidebar, and footer is included into the index.php file. Now it looks worse than before, I am sure I am just missing something as little as a colon though. Anymore help please?

    Validate your page and fix the open divs.

    Thread Starter unblurred

    (@unblurred)

    Wow, I am feeling really dumb right now because in my coding I don’t see any open divs. I did find out that I needed to make classes and ids and that is fixed but I am still getting 4 errors saying I am closing a div that isn’t open but I am seeing that it is. Here is the coding of my index file…

    <?php include(“header.php”); ?>

    <?php include(“sidebar.php”); ?>

    <div id=”blog”>

    <div class=”bloghead”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    [<?php the_date(); ?>]   ” rel=”bookmark”><?php the_title(); ?> @ <?php the_time() ?></div>

    <div class=”blogmid”>
    <?php the_content(__(‘(more…)’)); ?>

    Lubbing:
    <?php comment_plugger(); ?></div>

    <p align=”right”>
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>

    <?php comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    <center>
    <?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?>
    </center>

    <?php include(“footer.php”); ?>

    I just don’t see it.

    View the source of the page. You will see a <div class=”blog”> that closes after “@ 11.24” and then each closing div after the time of the next post causes the page to become even more “mangled”

    Probably because you have the bloghead div outside the loop and a closing div inside the loop (after the_time()) that gets thrown in for every post.

    <div class=”bloghead”>
    post 1 time</div>
    post 2 time</div>
    post 3 time</div>

    Thread Starter unblurred

    (@unblurred)

    So how do I get it in the loop, do I get rid of all the space and make it look like this..

    <div class=”bloghead”><?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    [<?php the_date(); ?>]   ” rel=”bookmark”><?php the_title(); ?> @ <?php the_time() ?></div>

    I am really tired and I am sorry if these questions are getting stupid.

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”bloghead”>

    Not sure what Bloghead means, but there needs to be an opening div somewhere before the closing div after the_time() – whether it is bloghead or something else doesn’t matter.

    Thread Starter unblurred

    (@unblurred)

    Ah ha!!! That was it. Thank you so so so so much. I think I remember before the upgrade, that same php line was before the layout. Bloghead is just the style for where I have the blog title and date and has the brown background. Once again, thanks so much, you are a life saver ??

    Well, it doesn’t quite make up for the life we didn’t save this week, but thanks anyway.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘only first post is formatted’ is closed to new replies.