get_pages() for post_type='post'
-
Hi,
I’m trying to create a custom version of WP_List_Pages that will build a list of both Pages -and- Posts.
The get_pages() function seems to indicate that one can pass an argument of post_type = ‘post’.
So I changed one line of WP_List_Pages
[code]
// Query pages.
$r['hierarchical'] = 1;
$r['post_type'] = 'post';
$pages = get_pages($r);
[/code]But it doesn’t seem to work.
–What am I doing wrong?
TIA,
–JC
The topic ‘get_pages() for post_type='post'’ is closed to new replies.