58 reputation
7
bio website
location London
age
visits member for 2 years
seen 10 hours ago

Sep
3
comment WP_Options high
Ah sorry I missed that.
Sep
3
answered WP_Options high
Aug
20
comment post__in not working with pre_get_posts, but post__not_in does work
Cheers, that's a nice method. I ended up using a different solution in the end. Could I see your code for assign_ids?
Aug
12
comment get_avatar() default image not working as of wp 3.5
This question helped me! Cheers, annoying how WordPress doesn't tell you it couldn't load it and just changes the URL seemingly at random
Aug
12
comment custom default avatar showing broken link
So if you use a custom avatar which results in a 404 link, WordPress tries to load one from gravatar.com? I only ask because I have a site behind a htaccess password at the moment and the custom gravatar is not loading, even though I've triple checked the URL (and tried get_stylesheet_directory_uri() and get_template_directory_uri() )
Jul
30
comment post__in not working with pre_get_posts, but post__not_in does work
I tried adding $query->set('ignore_sticky_posts', 1); but still no joy.
Jul
30
comment post__in not working with pre_get_posts, but post__not_in does work
I'm not sure, how would I check? This is a woocommerce product loop, so post_type=product
Jul
30
comment post__in not working with pre_get_posts, but post__not_in does work
I'm trying to filter the results of a query using pre_get_posts. Currently lots of results are returned, I'd like to only include those 3 post IDs (just for testing purposes, I have a much larger array of post IDS I'd like returned). At the moment I can exclude post IDs with post__not_in (this also works with the large array of IDS I have) but I can't include only them. I suppose another way would be to get an array of all post ids and compare that to the array I have?
Jul
30
asked post__in not working with pre_get_posts, but post__not_in does work
Jul
29
comment using posts_where for meta data on pre_get_posts
The trouble is I can't keep manipulating query arguments, I think I need to further filter posts once I have done the first meta_query. But I don't know how to do this. E.g. first select all posts that have a value greater than 0 for _sale_price, then exclude those posts where the current time does not fall in between _sale_price_dates_from and _sale_price_dates_to. I don't think I can do this at the same time using multiple meta_query arrays.
Jul
29
asked using posts_where for meta data on pre_get_posts
Jul
8
accepted Make a custom column sortable, by custom post count
Jul
8
comment Make a custom column sortable, by custom post count
Ah sorry this was me being silly, I added 'posts_per_page' => -1, to the query_posts call above and it works really well. Thanks again!
Jul
3
comment Make a custom column sortable, by custom post count
Hi thanks for answering. Unfortunately this doesn't work, although it seems like its nearly there. When I sort DESC the count of products seems to be limited to 10, i.e. the top user has 447 posts with post_type product, but it only displays 10. So it seems like its correctly ordered the user with the most, but isn't displaying the correct count. When I sort via ASC, the count is correct but the order is not. The results go like this: 1,1,2,2,0,2,0,0,2,0,0,0,1,4,0,1 etc so while small and correct, it still seems pretty random.
Jul
2
asked Make a custom column sortable, by custom post count
Jun
19
comment Can I upload media to a specific folder?
I'm experiencing the same problem at the moment. Did you ever find a good way of splitting up the folder after moving hosts, or did you just leave the existing 93k files as they are and turn on Organize Media?
Jun
12
awarded  Tumbleweed
Jun
5
answered Advanced Custom Fields Wordpress querying relationships
Jun
5
asked Bulk Edit Tags in WordPress?
Apr
12
awarded  Teacher