133 reputation
14
bio website sltaylor.co.uk
location London, United Kingdom
age
visits member for 3 years, 3 months
seen Apr 8 at 11:11

I've been working in web development since 1999, building sites with WordPress since 2005.


Jan
17
answered 404 for children in hierarchical custom post type
Jan
17
asked 404 for children in hierarchical custom post type
May
2
awarded  Notable Question
Nov
7
awarded  Student
Sep
26
awarded  Popular Question
Jul
22
awarded  Teacher
Jul
21
answered How important is it to enqueue a theme's stylesheet?
Apr
25
comment Most efficient way to get posts with postmeta
I've not tried it, but leveraging the get_meta_sql filter that follows this line would of course be preferable to hacking core code.
Jan
11
comment Most efficient way to get posts with postmeta
Actually, I'm going for multiple queries and caching the results. It turns out we not only need post meta, including fields that have multiple values, we also need data on users connected to the posts via meta fields (two sets of these), plus user meta on them. Pure SQL is definitely out of the window!
Jan
11
comment Most efficient way to get posts with postmeta
@rxn, if I have several hundred posts coming back (they're a custom post type), surely it's quite a heavy DB load to get_posts(), then get_post_meta() for every one of those? @MannyFleurmond, it's hard to find hard info on WP's built-in caching, but AFAIK it would cache stuff per request. The call to the server to grab this data is an AJAX call, and I don't think anything else will be grabbing stuff before it.
Jan
10
asked Most efficient way to get posts with postmeta
Sep
13
awarded  Editor
Sep
13
revised How can I query posts from multiple roles?
link to original post where code is taken from
Sep
13
suggested suggested edit on How can I query posts from multiple roles?