• I have links to display posts of certain categories.
    On these pages, the first two posts look good, meaning they align as I wanted in the CSS and so on, and then all the posts thereafter are ignoring my margins! very frustrating. have a look at viennapitts.com

    here is my main index template code

    <?php
    /**
    * @package WordPress
    * @subpackage Classic_Theme
    */
    get_header();
    ?>

    <div>
    <document.bgColor=”#000000″>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div style=”width: 680px;”><?php the_date(‘Y-m-d’, ‘<h2>’, ‘</h2>’); ?>
    </div>

    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>” style=”width: 680px;”>

    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
    <?php edit_post_link(__(‘Edit This’)); ?></div>

    <div class=”storycontent” style=”width: 680px;”>
    <?php the_content(__(‘(more…)’)); ?>
    </div>

    </div>
    </div>

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

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

    <?php posts_nav_link(‘ — ‘, __(‘« <<‘), __(‘>> »’)); ?>

    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think you have change the way the post that are been blocked i.e., from your third post.
    Make changes to code area of h3 class tag in a way that bookmark content that display will automatically changes.

    ————————-

    bespoke ecommerce

    Thread Starter rics23

    (@rics23)

    Im sorry, I don’t understand your reply, are you using an online translator by any chance?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Only two first posts look good.’ is closed to new replies.