WordPress is_child_of: Is this a child of page x?


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

This makes template code that applies to children of a particular page much more readable, especially if you can use a page path instead of an ID: `if ( is_child_of( 'topic/subtopic' ) ) :`.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.