Sites and custom post types do not show up in results
-
We have the problem that only “normal” posts are showing up in the search results. So no sites and no custom post types. Search example: https://naturfreunde.ch/?s=%C3%A4mmital
A custom post type should show up there.The posts DO show up with an admin search. On the frontend search page I do not see an error in the console. The Qury Monitor does seem to return a normal query but nothing shows up.
SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wp_relevanssi AS relevanssi WHERE (relevanssi.term LIKE 'aemmital%' OR relevanssi.term_reverse LIKE CONCAT(REVERSE('aemmital'), '%'))
I tried to add
var_dump( $posts ); exit();
to the search.php file but I do not see any results – or I’m looking in the wrong plance. Do you have any idea what it could be?
Thank you in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Sites and custom post types do not show up in results’ is closed to new replies.