• In my most current theme I wanted to display my blogpost in 3 colums, as blocks, so I found this code somewhere in this forum

    <table cellpadding="0" cellspacing="20" border="0">
    	<?php $col = 0; $cols_per_row = 2; while (have_posts()) : the_post();   if($col == 0) echo '<tr>';   ?>
    		<td class="column'<?php echo $col; ?>" style="vertical-align: top">
    			<div class="postblock" id="post-'<?php the_ID(); ?>'">
    				<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail( array(280, 280) ); ?></a>
    				<div class="postheader" style="margin-top: 15px; height: 25px !important; overflow: hidden; ">
    					<h2 class="postindex"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				</div>
    				<?php the_content('...'); ?>
    			</div>
    		<td>
    	<?php   if($col++ >= $cols_per_row){ 	$col = 0; 	echo '</tr>';   } endwhile; ?>
    </table>

    It does exactly what I wanted… except that I want to be able to adjust the content of some of the blocks, for example to put in my instagramfeed or Google Ads. Help? What do I need to change? You can see what I mean (atm at least, might change my mind) on dailylifestyle.nl

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Adjusting content of blocks created by jquery (?)’ is closed to new replies.