I’m working on a WordPress site with many custom post types. One thing I’m trying to do is figure out how to get an actual “archive” page to show up as a search result, in addition to individual posts, in my side wide search.
For example, I have a custom post type, Press Releases, and a single-press_release.php and archive-press_release.php
The archive page URL is like this: site.dev/press-releases
If someone does a search for “Press Releases” how can I get it so search results include a link to the actual archive page, site.dev/press-releases? It currently only includes the press release single posts in results.
Read more here: WordPress search.php include archive page as result