justintadlock / hybrid-base

A base theme for building with the Hybrid Core framework.
GNU General Public License v2.0
154 stars 74 forks source link

Archive header on search page #11

Closed EmilEriksen closed 8 years ago

EmilEriksen commented 8 years ago

hybrid_is_plural() is true if is_search() is true which means that archive-header.php is loaded on the search results page. This template uses the_archive_title() which doesn't handle search. It also tries to get an archive description on the search page.

justintadlock commented 8 years ago

The is the correct and expected behavior for Hybrid Core, which filters the_archive_title on search pages. This is also for back-compatibility with HC's old behavior before core WP had archive title/desc functions.

If you want to have different behavior, you can always roll your own custom search template or change how it works in Hybrid Base.

I'm closing this since it works how I want it to work.