2,427 reputation
21547
bio website
location
age
visits member for 4 years, 1 month
seen Oct 2 at 6:18

Dec
3
awarded  Notable Question
Nov
28
awarded  Popular Question
Nov
25
awarded  Taxonomist
Nov
20
awarded  Popular Question
Oct
25
awarded  Yearling
Sep
30
awarded  Explainer
Sep
25
awarded  Nice Answer
Sep
11
comment Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
Is this still the best way to do that with WP 4 ?
Sep
9
comment Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
I'd like to have one loop so I can show the two kinds of posts in the same list with pagination.
Sep
5
awarded  Popular Question
Sep
5
comment Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
Indeed, as I order by a meta field that exists only on events, all news are discarded from the results.
Sep
4
awarded  Custodian
Sep
4
reviewed Approve How can I upload SVG images using the media uploader?
Sep
4
asked Is it possible to apply a meta_query to one specific post type in a query with multilple post types?
Sep
2
accepted How can I hide children of draft pages using wp_list_pages()?
Sep
2
comment How can I hide children of draft pages using wp_list_pages()?
Wow I had no idea exclude_tree existed. In the end it seems this answer is the simplest, thanks all for the great code, I'm learning a lot from it.
Aug
31
comment How can I hide children of draft pages using wp_list_pages()?
@G.M. Does this work no matter at which depth the first draft page is ?
Aug
31
revised How can I hide children of draft pages using wp_list_pages()?
added 1 character in body
Aug
31
revised How can I hide children of draft pages using wp_list_pages()?
added 323 characters in body
Aug
31
comment How can I hide children of draft pages using wp_list_pages()?
That's nice and short. I think you should implode $exclude before returning, the exclude parameter of wp_list_pages() does't accept an array.