Get WordPress post ID from URL