Difficulties getting started… Earlier versions of Relevanssi Premium miss some database fields in the database declaration, causing trouble. This version will fix the problems. Nasty little bug, and fixing it wasn’t simple – the dbDelta function WordPress uses to fix tables is very cool when it works, but a pain to debug.
Indexing attachments from File blocks
The Relevanssi attachment indexing assumes the files are connected to the posts using the WordPress attachment mechanism. What if you don’t use that but instead add the files to the pages using the File block in the block editor? That’s not a problem, but it requires some extra code. Add……$block; } ); This function uses the relevanssi_block_to_render filter hook. Whenever a core/file block is encountered, the function fetches the file contents from the _relevanssi_pdf_content custom field for the attachment post and replaces the block contents with that. This works great for indexing but does not include the file contents…