Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Bottom Level Posts Listed Inside Related Top Level Posts – Possible?

$
0
0

Dear dmfzw,

The default post_type parameter for the get_pages function is "page", I've set it to "countries" and it is working fine. The code to get the childrens now is:

$pageChildren = get_pages(array( 'child_of' => get_the_ID(), 'post_type' => 'countries' ));

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.


Viewing all articles
Browse latest Browse all 20145

Trending Articles