/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/*--------------------------------------------------*/ /** 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');