• Hello, I wonder if there is any way to make the plugin search the final content of pages, not just what’s entered in the editor pane for a page?

    For instance I often have pages that generate content from a list of custom post types, it shows on the front end as part of the content but isn’t searchable because (I think), WP searched the content field for pages, not the final output.

    I know that that’s mostly a limitation of WP, but if anyone knows of a way to make it work with a custom filter, etc, I’d love to hear about it!

    Thanks.

    http://ww.wp.xz.cn/plugins/relevanssi/

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi has a filter relevanssi_content_to_index which lets you add arbitrary content to posts before they are indexed. I think you might be able to use that to make Relevanssi index your generated page content.

    Quoting from the user manual:

    relevanssi_content_to_index (”, $post)
    You can use this filter to add extra content to posts before Relevanssi indexes them. The additional content is then trimmed and a space is added between the old content and the added content.

Viewing 1 replies (of 1 total)

The topic ‘Search Generated page content’ is closed to new replies.