• I desperately need some help replacing a standard page loop, please please help me I might explode with anger in a minute! its probably very simple but i need the standard page loop from this coding:

    <?php
    	get_header();
    	global $woo_options;
    ?>
    
        <div id="content" class="page col-full">
    		<div id="main" class="col-left">
    
    		<?php if ( $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
    			<div id="breadcrumbs">
    				<?php woo_breadcrumbs(); ?>
    			</div><!--/#breadcrumbs -->
    		<?php } ?>  			
    
            <?php if ( have_posts() ) { $count = 0; ?>
            <?php while ( have_posts() ) { the_post(); $count++; ?>
    
                <div <?php post_class('drop-shadow lifted'); ?>>
    
    			    <h1 class="title"><?php the_title(); ?></h1>
    
                    <div class="entry">
                    	<?php the_content(); ?>
    
    					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
                   	</div><!-- /.entry -->
    
    				<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
    
                </div><!-- /.post -->
    
                <?php
                	$comm = 'both';
                	if ( isset( $woo_options['woo_comments'] ) && ( $woo_options['woo_comments'] != '' ) ) { $comm = $woo_options['woo_comments']; }
                	if ( ($comm == 'page' || $comm == 'both' ) ) {
                		comments_template();
                	}
                ?>
    
    		<?php
    				} // End WHILE Loop
    			} else {
    		?>
    			<div <?php post_class(); ?>>
                	<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
                </div><!-- /.post -->
            <?php } ?>  
    
    		</div><!-- /#main -->
    
            <?php get_sidebar(); ?>
    
        </div><!-- /#content -->
    
    <?php get_footer(); ?>

    And i want the standard page loop on this page replaced with:

    <?php woocommerce_content(); ?>

    I will love you forever if you help me ive got such a bad headache

    Tony Patman

Viewing 1 replies (of 1 total)
  • Delete <?php if ( have_posts() ) { $count = 0; ?> through <?php } ?> (the one just above the </div><!-- /#main --> line). Replace it with your code. That completely removes and replaces the loop.

Viewing 1 replies (of 1 total)
  • The topic ‘Replacing page loop’ is closed to new replies.