$urlParts = explode('/',$_SERVER["REQUEST_URI"]); $listingMetaDesc = get_post_meta($urlParts[2], 'metadesc', true);?>