Return to Snippet

Revision: 45345
at April 28, 2011 19:54 by psteinweber


Initial Code
/*--------------------------------------------------*/
/** add columns below teaser box*/
/*--------------------------------------------------*/

function column () { ?>
		<div class="column-box">
		<p class="show_cat">Partnerangebote</p>
			<div class="column">
			<?php 
			$page_id = 85;
			$page_data = get_page( $page_id );
			$content = apply_filters('the_excerpt', $page_data->post_content); 
			$title = $page_data->post_title; // Get title
			/*echo '<h2>' , $title , '</h2>';*/
			echo $content; 
			?> 
			</div>
			<div class="column">
			<?php 
			$page_id = 87;
			$page_data = get_page( $page_id );
			$content = apply_filters('the_excerpt', $page_data->post_content); 
			$title = $page_data->post_title; // Get title
			/*echo '<h2>' , $title , '</h2>';*/
			echo $content; 
			?> 
			</div>
			<div class="column">
			<?php 
			$page_id = 89;
			$page_data = get_page( $page_id );
			$content = apply_filters('the_excerpt', $page_data->post_content); 
			$title = $page_data->post_title; // Get title
			/*echo '<h2>' , $title , '</h2>';*/
			echo $content; 
			?> 
			</div>
		</div>
	<?php }
		
add_action('thesis_hook_after_content', 'column');

Initial URL

                                

Initial Description

                                

Initial Title
Thesis: add columns/pages below teaser box

Initial Tags
wordpress

Initial Language
PHP