Thesis: add columns/pages below teaser box


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /*--------------------------------------------------*/
  2. /** add columns below teaser box*/
  3. /*--------------------------------------------------*/
  4.  
  5. function column () { ?>
  6. <div class="column-box">
  7. <p class="show_cat">Partnerangebote</p>
  8. <div class="column">
  9. <?php
  10. $page_id = 85;
  11. $page_data = get_page( $page_id );
  12. $content = apply_filters('the_excerpt', $page_data->post_content);
  13. $title = $page_data->post_title; // Get title
  14. /*echo '<h2>' , $title , '</h2>';*/
  15. echo $content;
  16. ?>
  17. </div>
  18. <div class="column">
  19. <?php
  20. $page_id = 87;
  21. $page_data = get_page( $page_id );
  22. $content = apply_filters('the_excerpt', $page_data->post_content);
  23. $title = $page_data->post_title; // Get title
  24. /*echo '<h2>' , $title , '</h2>';*/
  25. echo $content;
  26. ?>
  27. </div>
  28. <div class="column">
  29. <?php
  30. $page_id = 89;
  31. $page_data = get_page( $page_id );
  32. $content = apply_filters('the_excerpt', $page_data->post_content);
  33. $title = $page_data->post_title; // Get title
  34. /*echo '<h2>' , $title , '</h2>';*/
  35. echo $content;
  36. ?>
  37. </div>
  38. </div>
  39. <?php }
  40.  
  41. add_action('thesis_hook_after_content', 'column');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.