SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Create two columns to blog (WP)

    I want to create two columns in my blog (using WP and skeleton), and i want to look like this :



    But i have problem with the result, there is njo the same that i want. Any help for this? I experiment.
    Code:
    	<div class="container">	
    				<div class="twelve columns">
    					<div class="title_id"> <h2> <?php echo get_the_title(); ?> </h2> </div>		
    					
    						<?php	
    				global $wp_query;
    				$secondary_query = $wp_query;
    				$wp_query = null;
    				$wp_query = new WP_Query( '&cat=-16' );	 ?>		
    	
    					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>				
    						<div class="post" id="post-<?php the_ID();?>">					
    						<h2><a href="<?php the_permalink() ?>"> <?php the_title(); ?> </a></h2>
    						<div class="posted"><em>Posted on <?php the_time('l, jS F, Y') ?> in <?php the_category(', ') ?>.</em></div>					
    						<?php	if ( has_post_thumbnail() ) {the_post_thumbnail();}  ?>									
    						<?php if( in_array( $post->ID, array() ) )						
    						{echo get_the_content();	} 	else 	{echo get_excerpt();	}?>																	
    
    							<div class="read-more"> </div>						
    					<div class="container">	
    						<div class="twelve columns">
    								<div class="border"> </div>	
    						</div>
    					</div>
    					</div> 						
    					<?php endwhile; ?>						
    					<?php else : ?>		
    					<h2> Not found </h2>		
    				</div><
    					<?php endif; ?>
    					<?php	
    					$wp_query = null;
    				$wp_query = $secondary_query;
    				wp_reset_postdata(); ?>
    
    	</div>

  2. #2
    SitePoint Member
    Join Date
    Apr 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    after many changes i found the solution. I "play" with columns of Skeleton and i have the result that i want.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •