daily pastebin goal
59%
SHARE
TWEET

Related Code

a guest May 31st, 2012 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. global $post;
  3. $original_post = $post;
  4. $related = cptr_populate($post->ID);
  5. foreach ( $related as $post ) : setup_postdata($post); ?>
  6.  
  7.  
  8.  
  9. <li class="list-item">
  10.         <div class="profile-image">
  11.                 <a class="profile-image-link" href="" target="_blank">
  12.                 <?php echo get_avatar( get_the_author_meta('ID'), 48 ); ?>
  13.                 </a>
  14.         </div>
  15. <div class="body body-list-profile-image-present">
  16.         <span class="text">
  17.                 <span class="user-name">
  18.                         <span class="user-full-name"><a class="user-full-name-link"><?php the_author(); ?></a></span>
  19.                 </span>
  20.                 <a href="<?php the_permalink(); ?>" class="body"><?php the_title(); ?></a>
  21.         </span>
  22.  
  23.         <span class="attributes">
  24.                 <span class="twitter-bird">
  25.                         <span class="twitter-bird-icon">&nbsp;</span>
  26.                 </span>
  27.                 <span class="timestamp"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></span>
  28.                
  29.                 <span class="actions"><span class="action-reply"><a href="<?php the_permalink(); ?>">Yorum Yap</a></span>
  30.                 <span class="action-favorite"><a href="">Begen</a></span>      
  31.         </span>
  32.  
  33.        
  34. </div>
  35. <div class="jta-clear">&nbsp;</div>
  36. </li>
  37.  
  38.  
  39.        
  40. <?php endforeach; ?>   
  41.        
  42.        
  43. <?php
  44. $post = $original_post; setup_postdata($post);
  45. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top