• I really love this theme, but I want to make it into a triple column layout with no sidebar, and each columns post drawn from a specific category. The theme is “feed-me-seymour”. I would be eternally grateful for any help I have been trying to do this for weeks. THANK YOU!

Viewing 7 replies - 1 through 7 (of 7 total)
  • There are thousands of WordPress themes – which means that many people won’t be familiar with your particular theme. So a link to your site where people can see the theme might result in more responses.

    Thread Starter atlantiscanyon

    (@atlantiscanyon)

    https://republicaapparel.com/blog/ Here she is. This theme is really crisp and clean, but I want to have t-shirts in one column, shoes in another, and hats in another all next to each other and in the middle of the page.

    Thanks!

    If you filed these posts under different categories, then you could use multiple Loops to pull the different posts into different areas of the page. You’d also have to do a fair of page layout and CSS editing to pull it off, though.

    Thread Starter atlantiscanyon

    (@atlantiscanyon)

    Yea they are filed under categories, this looks very promising!, what page in my theme do I edit, and do I do it three times for the three columns I want?

    If it’s the current home page that you want these 3 columns on, then you’d need to edit your theme’s index.php template file (make a backup copy first). The link I gave above covers the basics of multiple Loops and there are come good resource links at the end of the page.

    Thread Starter atlantiscanyon

    (@atlantiscanyon)

    Okay I think I got the proper tripe loop code which goes like this ( I have to edit in what categories I want to draw from. But I am stymied as to where I should add this on my index.php page. Adding it to the top does nothing to my site.

    Here is my index code:

    <?php get_header(); ?>
    
    <?php
    	$options = get_option("widget_sideFeature");
    	$posts = get_option('fms_number_posts');
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    	if (is_active_widget('widget_myFeature')) {
    		$category = "showposts=".$posts."&cat=-".$options['category']."&paged=".$paged;
    	} else {
    		$category = "showposts=".$posts."&paged=".$paged;
    	}
    	$i = 1;
    	?>
    
    	<?php query_posts($category); ?>
    	<div id="threecol"><div id="threecol2">
    	<?php while (have_posts()) : the_post(); ?>
    		<?php if($i == 7) { $i=4; } ?>
    		<div class="threepost threepost<?php echo $i; $i++; ?>">
    			<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    			<div class="storycontent">
    				<?php getImage('1'); ?>
    				<?php echo theme_excerpt(25); ?>
    				<p class="contread"><a href="<?php the_permalink(); ?>">Read More &raquo;</a></p>
    			 </div>
    		 </div>
    	<?php endwhile; ?>
    		</div>
    	</div>
        <div class="navigation">
            <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
            <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
        </div>
    <?php get_footer(); ?>

    and here is the supposed tripple column loop

    // the first loop
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php if ( in_category('7') && is_home() ) continue; ?>
    <?php if ( in_category('8') && is_home() ) continue; ?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php comments_template(); ?>
    <?php endwhile; ?>
    <?php posts_nav_link('','','&laquo; Previous') ?><?php previous_post('&laquo; %', '', 'yes'); ?>
    <?php posts_nav_link('','Next &raquo;','') ?><?php next_post('% &raquo;', '', 'yes'); ?>
    <?php else : ?>
    <p>Sorry..</p>
    <?php endif; ?>
    
    // the second loop
    <?php query_posts('cat=7&showposts=3'); ?>
    <?php $posts = get_posts('category=7&numberposts=3&offset=0');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php endforeach; ?>
    
    // the third loop
    <?php query_posts('cat=8&showposts=3'); ?>
    <?php $posts = get_posts('category=8&numberposts=3&offset=0');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php endforeach; ?>

    from this site
    https://perishablepress.com/press/2006/11/22/perishable-press-triple-loop-for-wordpress/
    anyone have any idea? thanks

    Thread Starter atlantiscanyon

    (@atlantiscanyon)

    Should I put this text in the index.php file, and if so anywhere else?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Make a single to the double’ is closed to new replies.