Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="sallfilter" style="width:100%; margin:0px auto;">
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post() ?>
- <div class="indexvidbox2">
- <div style="padding:8px;"><div class="cattextcontainer"><div class="cattexttitle">
- <?php $terms = wp_get_post_terms( $post->ID, 'videoscategory');
- echo '<h2>';
- foreach ($terms as $term) {
- echo '<a href="'.get_term_link($term->slug, 'videoscategory').'">'.$term->name.'</a>',' ';
- }
- echo '</h2>'; ?>
- </div></div>
- <br />
- <div class="imgborders2"><div class="imgcontainer2"><a href="<?php the_permalink() ?>" rel="bookmark" title="View Now"><?php if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- } else { ?>
- <img src="http://lawcademy.com/wp-content/uploads/2012/09/defualtimg1.png" width="200"; height="200"; />
- <?php } ?></a></div></div>
- <br />
- <div style="font-size:12px; color:#000;margin-bottom:7px; text-transform:uppercase; font-weight:bold;"><?php the_title() ?></div>
- <p><?php the_excerpt; ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="View Now">LEARN MORE</a>
- </p></div></div>
- <?php
- endwhile; endif; ?>
- <!-- content #end -->
- </div>
- <?php wp_reset_postdata(); ?>
- <div id="svideofilter" style="width:100%; margin:0px auto;">
- <?php $args = array(
- 'post_type' => 'videos',
- 's' => $s ); ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post() ?>
- <div class="indexvidbox2">
- <div style="padding:8px;"><div class="cattextcontainer"><div class="cattexttitle">
- <?php $terms = wp_get_post_terms( $post->ID, 'videoscategory');
- echo '<h2>';
- foreach ($terms as $term) {
- echo '<a href="'.get_term_link($term->slug, 'videoscategory').'">'.$term->name.'</a>',' ';
- }
- echo '</h2>'; ?>
- </div></div>
- <br />
- <div class="imgborders2"><div class="imgcontainer2"><a href="<?php the_permalink() ?>" rel="bookmark" title="View Now"><?php if ( has_post_thumbnail() ) {
- the_post_thumbnail();
- } else { ?>
- <img src="http://lawcademy.com/wp-content/uploads/2012/09/defualtimg1.png" width="200"; height="200"; />
- <?php } ?></a></div></div>
- <br />
- <div style="font-size:12px; color:#000;margin-bottom:7px; text-transform:uppercase; font-weight:bold;"><?php the_title() ?></div>
- <p><?php the_excerpt; ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="View Now">LEARN MORE</a>
- </p>
- </div></div>
- <?php
- endwhile; endif; ?>
- <!-- content #end -->
- </div>
- <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement