Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $postID = get_the_ID();
- if ( is_front_page() || $postID == 97 ) {
- if ( is_front_page() ) echo "<h1>Road Alerts</h1>";
- echo '<ul id="post-list">';
- if ( is_front_page() ) {
- $new_query = new WP_Query( array('posts_per_page' => 2, 'cat' => 7, 'paged' => get_query_var('paged')) );
- } else if ( $postID == 97 ) {
- $new_query = new WP_Query( array('posts_per_page' => 2, 'cat' => 9, 'paged' => get_query_var('paged')) );
- }
- while ( $new_query->have_posts() ) : $new_query->the_post();
- $meta = get_post_meta(get_the_ID(), $update_metabox->get_the_id(), TRUE);
- $revs = wp_get_post_revisions($id, array('order'=> 'DESC'));
- echo '<li>';
- thematic_postheader(); // Gets Post Title enclosed in Post Link and gets Post Meta
- thematic_content();
- if ($meta['updates']) { // If Post has updates
- echo "<div id='post-updates'>";
- foreach ($meta['updates'] as $update) { // For each update…
- echo "<div class='post-update'>";
- echo "<span class='post-update-meta'><strong>Update</strong> on " . $update['post-time'] . "</span>";
- echo "<p class='post-update-content'>" . $update['post-update'] . "</p>";
- echo "</div>";
- } /* end foreach $meta[post-update] */
- echo "</div>";
- }
- if (function_exists('sharethis_button')) { sharethis_button(); }
- echo '</li>';
- endwhile;
- echo '</ul>';
- if(function_exists('wp_pagenavi')) {
- wp_pagenavi( array('query' => $new_query) );
- }
- wp_reset_postdata();
- } // end if front or id=97
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement