Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m having the exact same problem with a wp-eccomerce shop. I’ve attached a video that shows the problem.

    I’ve no idea how to fix it myself. If any one has an idea and would like to share would be greatly appreciated!

    Link to video

    Thread Starter adayin

    (@adayin)

    Thank you very much. That works perfectly.

    I can’t get Ralevs solution to work. If any one does know of a plugin, fucntion or snippet of code that will bypass the category page straight to the post if only one post in category, that would be great.

    Have yet to give Ralevs solution a go, but would love an automatic script/plugin. I’ve been searching for some thing like this for a while now.

    Forum: Plugins
    In reply to: $postcount help needed.
    Thread Starter adayin

    (@adayin)

    I managed to get this working in the end. Just for those that may want to know, this is how:

    <?php get_header(); ?>
    
    <div id="work_wrap">
    
    <h2 class="headers">Recent work </h2>
    
    		<?php $postcount = 0; ?>
    
    		<?php if ( have_posts() ) : while(have_posts()) : the_post();  ?>
    
    			<?php $postcount++; ?>
    
    <div id="work">
    
    <div class="work_item<? if ( $postcount%3 == 0 ) { echo ' last'; } ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php echo get_post_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=300&h=177&src='); ?></a>
    <p><?php foreach((get_the_category()) as $category) { echo $category->cat_name . ''; } ?>: <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
    </div><!--END WORK ITEM CLASS-->
    </div>
    
    <?php endwhile; ?>
    
    	<?php include (TEMPLATEPATH . '/pagination.php'); ?>
    
    	<?php else : ?>
    
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    </div><!--END WORK_WRAP WRAPPER-->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Forum: Plugins
    In reply to: $postcount help needed.
    Thread Starter adayin

    (@adayin)

    Oh I also forgot to mention that there will be 9 posts per page and showing the children of one specific category. 🙂

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