WordPress.org

Forums

How to show category posts in 4 columns and 6 rows (2 posts)

  1. bonzai89
    Member
    Posted 7 months ago #

    I somehow managed to make it on my home page to shows posts in 4 columns and 6 rows ( http://imgur.com/iF8uedu ), but the company is showing me in 1 column and 6 rows ( http://imgur.com/Imw38A2 ).
    I can not manage to do the same with categories.
    Theme I use: Jarida
    Any help is welcome.

  2. bonzai89
    Member
    Posted 7 months ago #

    <?php if ( ! have_posts() ) : ?>
    	<div id="post-0" class="post not-found post-listing">
    		<h1 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h1>
    		<div class="entry">
    			<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>
    			<?php get_search_form(); ?>
    		</div>
    	</div>
    
    <?php else : ?>
    <div class="post-listing">
    <?php while ( have_posts() ) : the_post(); ?>
    <?php if( tie_get_option( 'blog_display' ) != 'full_thumb' ): ?>
    	<article class="item-list">
    		<h2 class="post-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    		<p class="post-meta">
    			<?php tie_get_time() ?>
    			<?php echo tie_views(); ?>
    		</p>
    
    		<?php if( tie_get_option( 'blog_display' ) == 'content' ): ?>
    		<div class="entry">
    			<?php the_content( __( 'Watch Now »', 'tie' ) ); ?>
    		</div>
    		<?php else: ?>
    			<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
    		<div class="post-thumbnail">
    			<a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
    				<?php tie_thumb('',300,160); ?>
    				<?php tie_get_score( true ); ?>
    			</a>
    		</div><!-- post-thumbnail /-->
    			<?php endif; ?>
    		<div class="entry">
    			<p><?php tie_excerpt() ?></p>
    			<a>"><?php _e( 'Watch Now »', 'tie' ) ?></a>
    		</div>
    		<?php endif; ?>
    
    		<?php tie_include( 'post-share' ); // Get Share Button template ?>
    	</article><!-- .item-list -->
    <?php else: ?>
    	<article class="item-list">
    		<?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?>
    		<div class="post-thumbnail single-post-thumb archive-wide-thumb">
    			<a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php tie_thumb('', 620 , 330 ); ?><?php tie_get_score( true ); ?></a>
    		</div>
    		<?php endif; ?>
    		<h2 class="post-title"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    		<p class="post-meta">
    			<?php tie_get_time() ?>
    			<span class="post-comments"><?php comments_popup_link( __( '0', 'tie' ), __( '1 Comment', 'tie' ), __( '% Comments', 'tie' ) ); ?></span>
    			<?php echo tie_views(); ?>
    		</p>
    		<div class="entry">
    			<p><?php tie_excerpt() ?></p>
    			<a>"><?php _e( 'Watch Now »', 'tie' ) ?></a>
    		</div>
    		<?php tie_include( 'post-share' ); // Get Share Button template ?>
    	</article><!-- .item-list -->
    <?php endif; ?>
    
    <?php endwhile;?>
    </div>
    <?php endif; ?>

Reply

You must log in to post.

About this Topic