Trying to get all posts (with all I mean all pages, posts and posts from custom post types).
Is this possible? The documentation says I can only pass a string as post_type
so how can I get all pages and custom post types?
Example where custom post type is called project
$args = array(
'exclude' => $inclPages,
'post_type' => 'pages,project',
'title_li' => __(''),
'sort_column' => 'menu_order'
);
$pages = get_pages( $args );
Any advice would be appreciated