Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // the code below will never change.
- function get_my_content($page) {
- $my_id = $page;
- $post_id = get_post($my_id, ARRAY_A);
- $title = $post_id['post_title'];
- $content = $post_id['post_content'];
- return $content;
- }
- ?>
- <div class='showreel-title' id='showreel-title-excerpts'>Showreel Excerpts</div>
- <div class='showreel'>
- <?php
- $page = get_page_by_path('Showreels/Excerpts');
- echo get_my_content($page);
- ?>
- </div>
- <div class='showreel-title' id='showreel-title-the-ruth-rendell-mysteries'>The Ruth Rendell Mysteries</div>
- <div class='showreel'>
- <?php
- $page = get_page_by_path('Showreels/The Ruth Rendell Mysteries');
- echo get_my_content($page);
- ?>
- </div>
- <div class='showreel-title' id='showreel-title-dalziel-and-pascoe'>Dalziel and Pascoe</div>
- <div class='showreel'>
- <?php
- $page = get_page_by_path('Showreels/Dalziel and Pascoe');
- echo get_my_content($page);
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement