Add custom text to index for certain posts
-
Hi there!
I have a bit of a complicated scenario where some posts are acting as “mirrors” for other posts, displaying all of the fields of these mirrored posts in the frontend. The mirrored posts should be excluded from the search results (I already found a solution for that using
post__not_in
, and instead the posts acting as mirrors should show up. But they won’t because they don’t actually contain the requested search tokens.One idea I had was to add the full relevanssi index data from the mirrored posts to the post mirrors (very confusing, I know ??) on
save_post
. If this is the recommended solution, could you point me towards a clean way to do that? Or do you have a better idea? I’m a Relevanssi premium user.
- The topic ‘Add custom text to index for certain posts’ is closed to new replies.