Post types for some posts are wrong
-
Hi there. We’ve been a happy user of Relevanssi Pro for some time now, though we did fall off the Premium bandwagon (cost-cutting measures.. :/ ). We’ve noticed that, in our search results — which include pages, posts, and users (member profiles) — the post type that comes back from get_post(id) is different than the post type we see in the debug output we put in lib/search.php within the Relevanssi plugin code (to troubleshoot).
So, we know the search results are correct, but when our content.php is called to display each of the results within the loop, the post type we get back for only some user records when we call get_post, can be either “product_variation” or “blocks”. Everything else about the user record seems fine, but something is getting lost in translation during the loop.
I understand you can’t login to the site since we’re not a Premium member, but if you have ideas on where I could focus my debugging/research, I’d greatly appreciate it! This is lower-level than I’ve had to work within the WordPress code.
- The topic ‘Post types for some posts are wrong’ is closed to new replies.