'> ';echo "\n"; echo '';echo "\n"; echo '';echo "\n"; endwhile; endif; } else { echo '';echo "\n"; echo '';echo "\n"; echo '';echo "\n"; echo '';echo "\n"; } $str = $post->post_content; $searchPattern = '//i'; if (is_single()){ if (has_post_thumbnail()){ $image_id = get_post_thumbnail_id(); $image = wp_get_attachment_image_src( $image_id, 'full'); echo '';echo "\n"; } else if ( preg_match( $searchPattern, $str, $imgurl )){ echo '';echo "\n"; } } ?>

旅行・観光