Timeline for How to make a WP_Query search with custom post types?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 18, 2023 at 19:44 | answer | added | V.Volkov | timeline score: 0 | |
Sep 5, 2018 at 9:04 | answer | added | NoLoHo | timeline score: -2 | |
Apr 29, 2015 at 5:57 | answer | added | Tristan CHARBONNIER | timeline score: 1 | |
Feb 17, 2014 at 15:13 | vote | accept | Sebastian | ||
Feb 17, 2014 at 15:13 | answer | added | Sebastian | timeline score: 5 | |
Feb 17, 2014 at 14:57 | comment | added | Sebastian | You are right, I tried it in a clean Wordpress install and it works. Seems like one of the plugins I use in my environment is hooking itself in one of the pre-query events. Thanks! | |
Feb 13, 2014 at 22:02 | comment | added | s_ha_dum | I have not been able to test this but I am about 95% sure I have don something similar and had it work. I agree with the speculation about action of filter interference. | |
Feb 13, 2014 at 21:36 | comment | added | Andrew Bartel | I actually wrote a search this morning that used post_type (a cpt), post_status (publish) and s and it's working fine. You almost certainly have a filter or something in a plugin/theme as suggested by @tf. | |
Feb 13, 2014 at 19:38 | history | tweeted | twitter.com/#!/StackWordPress/status/434048919551885312 | ||
Feb 13, 2014 at 18:57 | comment | added | tfrommen | I cannot confirm this. I just tested something very similar - successfully. Have you tried without any plugin and/or using a default theme? Even the search (i.e., the main search, using the search form) includes all custom post types that are not explicitly excluded from search. | |
Feb 13, 2014 at 17:38 | review | First posts | |||
Feb 13, 2014 at 17:49 | |||||
Feb 13, 2014 at 17:19 | history | asked | Sebastian | CC BY-SA 3.0 |