If name="post_type" is set in search template the archive template is loaded.
|Reported by:||ZaneMatthew||Owned by:|
|Component:||Posts, Post Types||Keywords:||reporter-feedback close|
I have a hidden form field named "post_type", which is used in the search form. When the user searches the archive.php template is loaded and not the search.php template.
I'm not sure if this is a bug, or unexpected behavior, note my fix was to use a different form field name.
Change History (14)
comment:4 SergeyBiryukov — 22 months ago
comment:13 webord — 9 months ago
- Keywords close added
- Resolution set to invalid
- Status changed from new to closed