• Hello,

    I look into your code, and I see this in common.php at line 342:
    '@<style[^>]*?>.*?</style>@siu',
    Like php closed. Next lines was correctly, and I deleted plus > sign, changed to this:
    '@<style[^>]*?.*?</style>@siu',
    I think this correct, but I just quest: this a little bug or not? Thanks for great plugin!

    —————–
    I have a second question: I use zip-recipes plugin, what like recipe card. But when search a terms or word, I no get any results from zip-recipes. Why? How can I add zip recipes tables to index (or need I modify this plugin)?

    https://wordpress.org/plugins/relevanssi/

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

    (@msaari)

    No, the code was right before your correction. The > symbol needs to be there.

    Where the ZipRecipes plugin stores the data? Does it use a custom post type, or a separate table? If the recipes are stored as posts, all you need to do is to make Relevanssi index that post type. If the recipes are stored in a separate table, Relevanssi can’t access it.

    Thread Starter mykee

    (@mykee)

    Thanks for reply, I put back this sign to common file.
    ZipRecipes store datas in a different table: wp_amd_zlrecipe_recipes. No store as post, all data in a different custom columns (recipe_title, cook_time, total_time, ingedients, etc.)
    No possible add a table name to search index? Like a list what tables index too?

    Plugin Author Mikko Saari

    (@msaari)

    Sorry, but Relevanssi only indexes posts. If there’s a post (can be any post type) per recipe to index, then data can be gathered from different places.

    A possible solution is to create a custom post type that has one post per recipe, generated automatically, but that gets a bit complicated. You’re probably better off with another search solution. AddSearch might be worth investigating.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug or not in common.php’ is closed to new replies.