ID; if ( $post->ID == 0 ) { global $wp_query; if ( isset( $wp_query->queried_object->ID ) ) { $meta_target_id = $wp_query->queried_object->ID; } } $post_meta = get_post_custom($meta_target_id); if ( has_post_thumbnail( $meta_target_id ) ) { $featured_image_id = get_post_thumbnail_id($meta_target_id); ?>
post_parent; $parent_title = get_the_title($parent_id); ?>