168 reputation
111
bio website somethingididntdo.com
location
age
visits member for 3 years, 10 months
seen Apr 14 at 16:21

Apr
14
comment How to prevent the default home rewrite to a static page
Perfect! I knew there'd be a hook somewhere, but all my googlings didn't turn up anything. Thanks so much, works perfectly.
Apr
14
comment How to prevent the default home rewrite to a static page
Yeh, i was thinking of that. A query for the page that is front_page, and then set that as post and include should replicate everything. Only thing is if the page is called something other than 'home', which could be. It becomes untenable.
Apr
14
comment How to prevent the default home rewrite to a static page
I realise i could set up two home pages... home and home2 and achieve this by setting home2 as the frontpage, but that's not really maintainable
Apr
14
comment How to prevent the default home rewrite to a static page
It doesn't matter what the home page is called. We've a specific use case where we need to be able to view the home page both at domain.com and domain.com/home but yet discern between the two for some functionality.
Apr
14
comment How to prevent the default home rewrite to a static page
The problem is getting that without the URL changing (so domain.com/home is still displayed. I hadn't thought of this though... It doesn't achieve exactly what I'm after, but could be a good jump off point. Thanks
Jan
30
comment Move theme templates to subfolder without losing page associations
Got it working with a little RecursiveDirectoryIterator magic to grab the new location. thanks a bunch for the tips
Jan
30
comment Move theme templates to subfolder without losing page associations
nice idea! I'll try it out now, thanks, @Milo!
Apr
14
comment Order posts (across the whole site) by metadata date
request filter was indeed, a good shout.
Mar
10
comment How would I use pre_get_posts to query another site for posts in my multisite network?
@JohanNordström You've saved me some time investigating the same there. I'll do something similar and fallback on switch_to_blog with some cacheing to avoid too many queries. Thanks for getting back with that so swiftly!
Mar
7
comment How would I use pre_get_posts to query another site for posts in my multisite network?
Did you ever get this working? I'm coming up against exactly the same situation now
Aug
26
comment How can I get the first 50% of all posts (within a custom post type)?
Absolutely spot on. Thanks @birgire! (just incase anyone else is wondering: you can use the 'offset' property for the second query to start where the first list leaves off).
Jun
26
comment How do I override part of the main loop in my child theme?
Yeh, but you can still leave the main loop intact if you don't want to override it. Then just set up a template with loop for pulling portfolio posts only, and use this on a 'Home' page. That way if you want to use the main loop later (for a more complete blog, not just porfolio), it's still there. edits: grammar.
Jun
26
comment How to seamlessly redirect between different archive and singular slugs?
not got any answer for you here, but I had a look at the site and it seems pretty handy! Any chance you've got alphabetical organisation of the functions on the roadmap there?
Apr
18
comment Custom query does not find pages
grand. thanks for that! i didn't realise there was a specific difference between the two methods of querying there. Anywho. This worked like a charm and I've tidied up all my other queries accordingly. Tanks.
Apr
18
comment Custom query does not find pages
I tried switching here and got the following error: 'Notice: Undefined offset: 1 in /Users/joshuef/Development/onfilm/wp-includes/query.php on line 2772 '
Jan
23
comment Is there an easy way to flag posts in the admin area?
Brilliant. This plugin is exactly what I needed. Custom statuses plus a whole load of other editorial goodness. Thank you very much @Brady!
Jan
23
comment Is there an easy way to flag posts in the admin area?
Yeh, that's the thing. I need a double-check on the content ideally, one more over and above wordpress as standard. At first glance this plugin looks like it could well help! I'm going to have a dive in there now, thanks.
Jan
11
comment Query two taxonomies via URL or link?
I've edited the question some, and realise I could do it with GET variable, although I would rather a nice URL structure if possible. Or rather: if there is a simple Wordpress way to query across taxonomies, that would be a good thing to know. Thanks Rarst!
Dec
30
comment My class function is not seeing GET url paramaters
I've figured it, but I can't post my answer yet! basically I forgot to declare $wp_query as a global variable to use the filters within my class. DOH. I'll post code when I'm allowed.
Dec
21
comment Recommend a guide to catching plugin errors, please?
Can't believe I didn't know about the debug bar. Very handy.