get_pages post_type parameter not working
-
Hi all,
If I’m understanding the codex https://codex.www.ads-software.com/Function_Reference/get_pages correctly, there is the parameter post_type available. The default is ‘pages’ but it can be set to ‘post’ or other…
Unfortunately, setting it to ‘post’ does not return posts. Instead I get an empty string. At first I thought maybe the default ‘hierarchical’ value was interfering and needed to be set to false but that did not make any difference.
Is this a bug? Looking at the original function code on https://core.trac.www.ads-software.com/browser/tags/3.5.1/wp-includes/post.php#L0 it looks like it should (still) work.
Anyone any thoughts on this?
Thanks ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_pages post_type parameter not working’ is closed to new replies.