Relevanssi can expand shortcodes – not all, but those that behave well – and see their content. Dynamic data depends on how it’s done; in some cases yes, in some cases no.
However – if you have, say, TablePress table on a page, and you make changes in the table, Relevanssi doesn’t notice that. The changes are not reflected in the index for the page until the page is reindexed, either by saving it or by rebuilding the whole index.
If your site is very dynamic, Relevanssi is not the best option.
OK. By dynamic I should clarify. I could technically do the whole thing in static HTML, but I used the TablePress to build the tables, then the shortcode to insert them into the page, making the page have maybe 12 lines of code.
The data itself may change, but not daily or based on any user action. If it does change, we’d edit the TablePress and re-save the page if need be. Right now, the main issue is, no search period seems to see any of the table data, which is pushing me to build it statically.
Ok, in that case Relevanssi will do just fine – Relevanssi will index the contents of your TablePress tables with the posts.
Hi Mikko, wondering if you could help me with a similar task.
I have a page that is loaded completely dynamically from a php mysql query and populated into a table. I’ve tried a couple ways of doing this both work but neither allow Relevanssi to search it.
Method 1 – insert_php plugin
Method 2 – custom page template
Any ideas?
Thank you!
Beerawk, make it a shortcode, and Relevanssi will be able to index it – just not dynamically when the content changes.