• Resolved lgreer0010

    (@lgreer0010)


    When I set my category page to the column theme the columns don’t fill the page properly. There’s enough room for 3 columns and 2 rows but only the 1st row has a complete set of 3 posts, the second row only shows 1 and where 2 other posts could go it is blank. An Older Entries link is shown. When clicked the next page does the same thing. How can I get a full page of posts to show?

    What I want: 1 2 3
    4 5 6

    What I get: 1 2 3
    4

    Here’s the column code.

    `<?php
    /**
    * @package WordPress
    * @subpackage constructor
    */
    __(‘Column’, ‘constructor’); // required for correct translation
    ?>
    <div id=”content” class=”box shadow opacity <?php the_constructor_layout_class(‘none’) ?>”>
    <div id=”container” class=”column”>
    <?php get_constructor_slideshow(true) ?>
    <?php
    /* Need three columns, with next layout

    1 | 2 | 3
    4 | 5 | 6
    7 | 8 | ..

    */
    if (have_posts()) :
    global $wp_query;
    $wp_query->post_count;
    for ($col=0; $col < 3; $col++) :
    ?>

    <section>
    <?php
    // start from -1
    for ($i=$col-1; $i < $wp_query->post_count; $i = $i+3) :
    if ($i >= $wp_query->post_count-1)continue;
    $wp_query->current_post;
    the_post();

    ?>
    <article <?php post_class(‘opacity shadow box’); ?> id=”post-<?php the_ID() ?>”>
    <header class=”opacity”>
    <h2>” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘constructor’), the_title_attribute(‘echo=0’)); ?>”><?php the_title(); ?></h2>
    </header>
    <div class=”thumbnail”>
    ” rel=”bookmark” title=”<?php printf(__(‘Permanent Link to %s’, ‘constructor’), the_title_attribute(‘echo=0’)); ?>”>
    <?php
    the_post_thumbnail(’tile-post-thumbnail’);
    ?>

    </div>
    <div class=”entry”>
    <?php the_content(”); ?>
    </div>
    <footer>
    <?php edit_post_link(__(‘Edit’, ‘constructor’), ”, ‘ | ‘); ?>
    <?php if (get_constructor_option(‘content’, ‘date’)) { the_date(); echo ‘ | ‘; } ?>
    <?php if (get_constructor_option(‘content’, ‘links’, ‘author’)) { the_author_posts_link(); echo ‘ | ‘; } ?>
    <?php if (get_constructor_option(‘content’, ‘links’, ‘category’) && count( get_the_category() ) ) : ?>
    <?php _e(‘Posted in’, ‘constructor’); echo “: “; the_category(‘, ‘); echo ‘ | ‘;?>
    <?php endif; ?>
    <?php if (get_constructor_option(‘content’, ‘links’, ‘comments’)) {
    comments_popup_link(
    __(‘No Comments »’, ‘constructor’),
    __(‘1 Comment »’, ‘constructor’),
    __(‘% Comments »’, ‘constructor’),
    ‘comments-link’,
    __(‘Comments Closed’, ‘constructor’)
    );
    } ?>
    </footer>
    </article>
    <?php endfor; ?>
    </section>
    <?php endfor; ?>
    <?php get_constructor_navigation(); ?>
    <?php endif; ?>
    </div>
    <?php get_constructor_sidebar(); ?>
    </div><!– id=’content’ –>

  • The topic ‘Column.php problem on Constructor Theme’ is closed to new replies.