Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Main Column -->
- <div id="maincolHomePages">
-  
- <!--TextBox-->
- <div class="textBoxHomePages">
- <div class="featuredTopBox">
- <div class="imgFeatureBoxImg">
- <div class="imgFeatureBoxImgText1"> Featured Text</div>
- </div>
- <?php
- /* Get all sticky posts */
- $sticky = get_option( 'sticky_posts' );
- /* Sort the stickies with the newest ones at the top */
- rsort( $sticky );
- /* Get the 2 newest stickies (change 2 for a different number) */
- $sticky = array_slice( $sticky, 0, 1 );
- /* Query sticky posts */
- query_posts( array( 'post__in' => $sticky,'category' => 'watch','caller_get_posts' => 1 ) );
- ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="imgFet">
- <div > <?php the_post_thumbnail('homepage-thumb'); ?> </div>
- </div>
- <div class="textBoxcaption">
- <div class="imgFeatureBoxImgText2">
- <h2><?php the_title(); ?></h2>
- <?php the_excerpt(); ?>
- <h3><a href=" <?php the_permalink(); ?>" > ReadMore</a></h3>
- </div>
- </div>
- <?php endwhile; ?>
- </div>
- <table class="wrapperBoxes">
- <tr>
- <td>
- <p>Search</p>
- </td>
- </tr>
- <tr>
- <td>
- <hr class="singlePagesHR">
- </td>
- </tr>
- <tr>
- <?php
- $args = array( 'posts_per_page' => 1, 'order'=> 'DESC','category' => 'watch', 'orderby' => 'post_date','offset' => 0 );
- $postslist = get_posts( $args );
- foreach ($postslist as $post) : setup_postdata($post); ?>
- <td class="leftBoxes">
- <div class="imgMargin"> <?php the_post_thumbnail(); ?> </div>
- <br>
- <div class="boxScrollsBlogsView">
- <h2><?php the_title(); ?> </h2>
- <P>
- <?php the_excerpt(); ?>
- </P>
- <h3><a href="<?php the_permalink(); ?>"> ReadMore</a></h3>
- </div>
- </td>
- <?php endforeach; ?>
- <?php
- $args = array( 'posts_per_page' => 1, 'order'=> 'DESC','category' => 'watch', 'orderby' => 'post_date','offset' => 1 );
- $postslist = get_posts( $args );
- foreach ($postslist as $post) : setup_postdata($post); ?>
- <td class="rightBoxes">
- <div class="imgMargin"> <?php the_post_thumbnail(); ?> </div>
- <br>
- <div class="boxScrollsBlogsView">
- <h2><?php the_title(); ?> </h2>
- <P>
- <?php the_excerpt(); ?>
- </P>
- <h3><a href="<?php the_permalink(); ?>"> ReadMore</a></h3>
- </div>
- </td>
- <?php endforeach; ?>
- </tr>
- <tr>
- <?php
- $args = array( 'posts_per_page' => 1, 'order'=> 'DESC','category' => 'watch', 'orderby' => 'post_date','offset' => 2 );
- $postslist = get_posts( $args );
- foreach ($postslist as $post) : setup_postdata($post); ?>
- <td class="leftBoxes">
- <div class="imgMargin"> <?php the_post_thumbnail(); ?> </div>
- <br>
- <div class="boxScrollsBlogsView">
- <h2><?php the_title(); ?> </h2>
- <P>
- <?php the_excerpt(); ?>
- </P>
- <h3><a href="<?php the_permalink(); ?>"> ReadMore</a></h3>
- </div>
- </td>
- <?php endforeach; ?>
- <?php
- $args = array( 'posts_per_page' => 1, 'order'=> 'DESC','category' => 'watch', 'orderby' => 'post_date','offset' => 3 );
- $postslist = get_posts( $args );
- foreach ($postslist as $post) : setup_postdata($post); ?>
- <td class="rightBoxes">
- <div class="imgMargin"> <?php the_post_thumbnail(); ?> </div>
- <br>
- <div class="boxScrollsBlogsView">
- <h2><?php the_title(); ?> </h2>
- <P>
- <?php the_excerpt(); ?>
- </P>
- <h3><a href="<?php the_permalink(); ?>"> ReadMore</a></h3>
- </div>
- </td>
- <?php endforeach; ?>
- </tr>
- <tr>
- <td>
- <hr class="singlePagesHR">
- </td>
- </tr>
- </table>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement