wp query to get child pages of current page

Posted by Prem Tiwari | Updated on

You have to change child_of to post_parent and also add post_type => 'page': WordPress codex Wp_query Post & Page Parameters

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers