WordPress get parent slug

/ Published in: PHP
Save to your folder(s)

This is a really short function you can use inside The Loop to get the parent page slug (useful to add to the body classes or something)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.