View difference between Paste ID: gwPSP19n and SziB1RF7
SHOW: | | - or go back to the newest paste.
1
<ul>
2
<?php
3-
global $post;
3+
4-
$thePostID = $post->ID;
4+
5-
$parentID2 = get_post_meta ($post->ID, 'parentID', true);
5+
foreach( $myposts as $post ) :	
6
	$parentID2 = get_post_meta ($post->ID, 'parentID', true);
7-
7+
	if ($post->ID == $parentID2) { ?>
8-
if ($thePostID == $parentID2) {
8+
9
	<?php }
10-
10+
endforeach; ?>
11-
11+