• I have been searching and testing on and off for weeks attempting to figure out how to use, three categories in my blog that show up in three respective columns.

    That is: I want three columns that each handle one category. I then want to use posts that go to one of the three categories. So, it’s okay if the categories are hardwired.

    The problem is, I am using a premium theme, which has limited support (Graph Paper Press has gone downhill).

    If someone could please take a look at the code below and point me in the right direction it would be super helpful, as I am terrible at figuring out other’s code (I tend to only understand code that I have written).

    If there is just a simple fix, tutorial, or plug-in that I have missed that would be great, as my coding skills are limited.

    I think this is the right php/css page, it’s the Blog Template:

    <?php
    /*
    Template Name: Blog
    */
    ?>
    <?php get_header(); ?>
    	<div class="content">
    		<h3 class="fancy"><?php _e('Blog','gpp_i18n'); ?></h3>
    		<?php
    		$temp = $wp_query;
    		$wp_query = NULL;
    		$wp_query = new WP_Query();
    		$wp_query->query('category_name=pppblog&paged='.$paged); $tb_counter = 1;
    		while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    		<div <?php if(function_exists('post_class')) : ?><?php post_class(); ?><?php else : ?>class="post post-<?php the_ID(); ?>"<?php endif; ?>>
    			<h2 class="fancy"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','gpp_i18n'),the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    			<div class="entry">
    				<?php if ( !post_password_required() ) { ?>
    					<?php get_template_part( 'part', 'multimedia' ); ?>
    				<?php } ?>
    				<?php global $more; $more = 0; the_content(); ?>
                    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'gpp_i18n' ), 'after' => '</div>' ) ); ?>
    				<?php if ($tb_counter == 1) { ?>
    				<?php gpp_ad_code('main'); ?>
    				<?php  } ?>
    			</div><div class="clear"></div>
    		</div><div class="clear"></div>
    		<p class="postmetadata"><?php the_time(__('M d, Y', 'gpp_i18n')); ?> | <?php _e('Categories: ','gpp_i18n'); if (the_category(', '))  the_category(); ?> <?php if (get_the_tags()) the_tags(__('| Tags: ','gpp_i18n')); ?> | <?php comments_popup_link(__('Leave A Comment »', 'gpp_i18n'), __('1 Comment »', 'gpp_i18n'),_n('% Comment »', '% Comments »',get_comments_number (),'gpp_i18n')); ?> <?php edit_post_link(__('Edit','gpp_i18n'), '| ', ''); ?></p>
    		<?php $tb_counter++; endwhile; ?>
    		<div class="nav-interior clearfix">
    			<div class="prev"><?php next_posts_link(__('&laquo; Older Entries','gpp_i18n')); ?></div>
    			<div class="next"><?php previous_posts_link(__('Newer Entries &raquo;','gpp_i18n')); ?></div>
    		</div><div class="clear"></div>
    		<?php $wp_query = NULL; $wp_query = $temp;?>
    	</div>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post to Blog: Category per column’ is closed to new replies.