348 reputation
28
bio website
location United States
age
visits member for 4 years, 3 months
seen Feb 21 at 22:34

Mar
27
awarded  Popular Question
Nov
14
awarded  Yearling
Sep
6
awarded  Enlightened
Sep
6
awarded  Nice Answer
Jun
28
awarded  Commentator
Jun
28
comment Include different loop templates in search query
Sorry, I was confused about your current approach—I missed where you were calling loop-search.php from the search.php template. I've edited my answer a bit to fix that; it may still be the wrong approach for you, but at least it answers the actual question. If you need different custom post type output for different contexts, then you could end up with search_partial-{$cpt-name}.php and index_partial-{$cpt-name}.php, which gets a little busy. I personally find it easier to look in the directory than in the loop code when it's time to change the output.
Jun
28
awarded  Editor
Jun
28
revised Include different loop templates in search query
I missed the part where the OP was calling the search loop from search.php.
Jun
27
answered Include different loop templates in search query
May
31
comment Why does 'exclude_from_search' exclude a custom post type from WP_Query?
Here's the ticket in WP Core trac: core.trac.wordpress.org/ticket/17592. It's already patched, so I'm off to do some testing.
May
31
comment Why does 'exclude_from_search' exclude a custom post type from WP_Query?
@shawn, I'd be happy to share the code. Do you have an existing question on StackExchange? I'd prefer to post it in an answer instead derailing in a comment.
May
27
comment Changing Plugin Load Order
Thanks for the clarification! I was obviously looking at your question through my own lens.
May
27
comment Changing Plugin Load Order
My assumption was that the separation of plugins was for your benefit as a developer/site admin, and therefore user control is irrelevant. Otherwise, why not combine foo and bar into the same plugin? FWIW, I currently use this workaround on a CMS site where I have multiple content type plugins which extend a base custom post type Class. Without the workaround, deactivating the "master" plugin (accidentally or otherwise) would take down all of the "slave" plugins and most of the site content.
May
27
comment Why does 'exclude_from_search' exclude a custom post type from WP_Query?
I'm still new to this WP development stuff, and when I didn't see anything about this in the Codex or core.trac.wordpress.org I figured it was intended behavior. I think I'll update the Codex and log a bug. Post types "excluded from search" can be queried via WP_Query if you specify the post type, so I think this is just an oversight.
May
26
answered Changing Plugin Load Order
May
26
answered How to remove bulk edit options
May
25
asked Why does 'exclude_from_search' exclude a custom post type from WP_Query?
May
17
comment Why can't I hook into save_posts after admin_init?
OK, turns out a persistent parent object was fool's gold. I guess there's a reason why the vast majority of custom field classes rely on the $_POST array. That's now where I check for my additional metabox.
May
13
answered add_action('wp_ajax_[action name]', myfunction) problem
May
13
answered Ajax with OOP doesn't work