Timeline for Best way to create a search for custom post type by custom field values
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 16, 2015 at 13:47 | comment | added | s_ha_dum | If you don't want the archive, register the post type without one, but you can create a custom archive template as well. Be aware that the main query will still run which could be a wasteful use of resources. | |
Jul 16, 2015 at 12:36 | vote | accept | Oliver | ||
Jul 1, 2015 at 12:26 | comment | added | Oliver | ohh.. ok just as well I asked ;) Would it be bad to replace the default archive (www.example/people/) with a template (archive-people.php) that handles this searching? Its just that an archive in this context is useless, or can it be disabled? | |
Jul 1, 2015 at 0:02 | history | answered | s_ha_dum | CC BY-SA 3.0 |