Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $post;
- $original_post = $post;
- $related = cptr_populate($post->ID);
- foreach ( $related as $post ) : setup_postdata($post); ?>
- <li class="list-item">
- <div class="profile-image">
- <a class="profile-image-link" href="" target="_blank">
- <?php echo get_avatar( get_the_author_meta('ID'), 48 ); ?>
- </a>
- </div>
- <div class="body body-list-profile-image-present">
- <span class="text">
- <span class="user-name">
- <span class="user-full-name"><a class="user-full-name-link"><?php the_author(); ?></a></span>
- </span>
- <a href="<?php the_permalink(); ?>" class="body"><?php the_title(); ?></a>
- </span>
- <span class="attributes">
- <span class="twitter-bird">
- <span class="twitter-bird-icon"> </span>
- </span>
- <span class="timestamp"><?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?></span>
- <span class="actions"><span class="action-reply"><a href="<?php the_permalink(); ?>">Yorum Yap</a></span>
- <span class="action-favorite"><a href="">Begen</a></span>
- </span>
- </div>
- <div class="jta-clear"> </div>
- </li>
- <?php endforeach; ?>
- <?php
- $post = $original_post; setup_postdata($post);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement