Wordpress: Get permalink by slug/title