post->post_title) ? $wp_query->post->post_title : null; $currentUrl = home_url(add_query_arg(array(), $wp->request)); $hasTitle = get_field('inner_page_banner_title'); if ($hasTitle) { $title = $hasTitle; } else if (!$hasTitle && sizeof($_GET) > 0) { $title = 'Search Results'; } else { $title = $breadcrumbItem; } if (sizeof($_GET) > 0) { $breadcrumbItem = 'Search Results'; if (array_key_exists('title', $_GET)) { $breadcrumbItem .= ': ' . $_GET['title']; } $currentUrl = $currentUrl . '?' . http_build_query($_GET); } ?>