SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | global $post; | |
3 | $original_post = $post; | |
4 | $related_count = 0; | |
5 | $related = cptr_populate($post->ID); | |
6 | ||
7 | foreach ( $related as $post ) : setup_postdata($post); | |
8 | ||
9 | $related_count++; | |
10 | if( is_home() ) | |
11 | { | |
12 | if($related_count > 1) | |
13 | break; | |
14 | } | |
15 | - | ?> |
15 | + | ?> |
16 | ||
17 | <!--each tweet output here--> | |
18 | ||
19 | <?php endforeach; ?> | |
20 | ||
21 | <?php | |
22 | $post = $original_post; setup_postdata($post); | |
23 | ?> |