Advertisement
Guest User

Untitled

a guest
Nov 13th, 2012
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.62 KB | None | 0 0
  1. <div id="sallfilter" style="width:100%; margin:0px auto;">
  2.  
  3. <?php if(have_posts()) : ?>
  4.  
  5.             <?php while(have_posts()) : the_post() ?>
  6.  
  7.  
  8.               <div class="indexvidbox2">
  9.  
  10. <div style="padding:8px;"><div class="cattextcontainer"><div class="cattexttitle">
  11.  
  12. <?php $terms = wp_get_post_terms( $post->ID, 'videoscategory');
  13.  
  14. echo '<h2>';
  15.  
  16. foreach ($terms as $term) {
  17.  
  18.     echo '<a href="'.get_term_link($term->slug, 'videoscategory').'">'.$term->name.'</a>','&nbsp;';
  19.  
  20. }
  21.  
  22. echo '</h2>'; ?>
  23.  
  24. </div></div>
  25.  
  26. <br />
  27. <div class="imgborders2"><div class="imgcontainer2"><a href="<?php the_permalink() ?>" rel="bookmark" title="View Now"><?php if ( has_post_thumbnail() ) {
  28. the_post_thumbnail();
  29. } else { ?>
  30. <img src="http://lawcademy.com/wp-content/uploads/2012/09/defualtimg1.png" width="200"; height="200"; />
  31. <?php } ?></a></div></div>
  32.  
  33. <br />
  34.  
  35. <div style="font-size:12px; color:#000;margin-bottom:7px; text-transform:uppercase; font-weight:bold;"><?php the_title() ?></div>
  36. <p><?php the_excerpt; ?>
  37. <a href="<?php the_permalink() ?>" rel="bookmark" title="View Now">LEARN MORE</a>
  38.                    </p></div></div>
  39. <?php
  40. endwhile; endif; ?>
  41.  
  42.                 <!-- content #end -->
  43.  
  44.           </div>
  45. <?php wp_reset_postdata(); ?>
  46.        
  47.  
  48. <div id="svideofilter" style="width:100%; margin:0px auto;">
  49.  
  50. <?php $args = array(
  51.     'post_type'       => 'videos',
  52. 's'    => $s ); ?>
  53.   <?php if(have_posts()) : ?>
  54.  
  55.             <?php while(have_posts()) : the_post() ?>
  56.      <div class="indexvidbox2">
  57.  
  58. <div style="padding:8px;"><div class="cattextcontainer"><div class="cattexttitle">
  59.  
  60. <?php $terms = wp_get_post_terms( $post->ID, 'videoscategory');
  61.  
  62. echo '<h2>';
  63.  
  64. foreach ($terms as $term) {
  65.  
  66.     echo '<a href="'.get_term_link($term->slug, 'videoscategory').'">'.$term->name.'</a>','&nbsp;';
  67.  
  68. }
  69.  
  70. echo '</h2>'; ?>
  71.  
  72. </div></div>
  73.  
  74. <br />
  75.  
  76. <div class="imgborders2"><div class="imgcontainer2"><a href="<?php the_permalink() ?>" rel="bookmark" title="View Now"><?php if ( has_post_thumbnail() ) {
  77. the_post_thumbnail();
  78. } else { ?>
  79. <img src="http://lawcademy.com/wp-content/uploads/2012/09/defualtimg1.png" width="200"; height="200"; />
  80. <?php } ?></a></div></div>
  81.  
  82. <br />
  83.  
  84.  
  85.  
  86.  
  87.  
  88. <div style="font-size:12px; color:#000;margin-bottom:7px; text-transform:uppercase; font-weight:bold;"><?php the_title() ?></div>
  89.  
  90. <p><?php the_excerpt; ?>
  91. <a href="<?php the_permalink() ?>" rel="bookmark" title="View Now">LEARN MORE</a>
  92.                    </p>
  93.  
  94. </div></div>
  95.  
  96.  
  97.  
  98. <?php
  99. endwhile; endif; ?>
  100.  
  101.                 <!-- content #end -->
  102.  
  103.           </div>
  104.  
  105. <?php wp_reset_postdata(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement