I was using $posts->post_title to get the name of the current Page, but I really need to get the current slug/permalink. $posts->post_slug doesn’t give me anything (echo $posts->post_slug is empty.)
I’m thinking that categories have slugs, but Pages have permalinks, but I’m not guessing the correct field name. Can anyone help?
- The topic ‘Get slug/permalink name for page’ is closed to new replies.