• I’m pretty sure this isn’t just a 3.3 issue w/ Relevanssi, however I’d just like to point out that the indexing of expanded shortcodes does not work if you your shortcode contains a mysql query in it. You can do a simple mysql query and return the result to check it out, and then try to do a search on that result. At least not w/ the $wpdb class or any other method of WordPress querying e.g. get_posts(), get_pages(), $wpdb->get_results. Even after reseting the queries it has issues.

    To get around this I had to write my query to a “hidden” page and the “scrape” my own page with file_get_contents, after I did that, it indexed the shortcode from the scraped page just fine. But a direct query inside the shortcode won’t work.

    Just wanted to point this out, maybe I’m doing something wrong, I’ve done a ton of custom development w/ WordPress & Relevanssi and we got a good thing goin on, but this is just one area where I can’t get any love.

    Any thoughts or suggestions are welcome. Like I said there is really no code needed to show you cause it can literally be any query inside of a shortcode. If you really must you can just use the basic one on the WP Query codex page http://codex.wordpress.org/Class_Reference/WP_Query#Usage and just plugin a pid.

    http://wordpress.org/extend/plugins/relevanssi/

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

    (@msaari)

    Relevanssi does nothing special with the shortcodes, just uses do_shortcode() to expand them. If that doesn’t expand the shortcode properly, then I don’t know what could be going on.

    Perhaps some kind of context problem? For example, Relevanssi can’t expand WP-Table-Reloaded shortcodes, because those shortcodes are not defined in the admin context Relevanssi has.

    Relevanssi should index whatever it is the shortcode returns at the moment of indexing.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Shortcodes/Indexing and MySQL’ is closed to new replies.