Plugin Author
Brecht
(@brechtvds)
This can happen if it doesn’t find the recipe in the post content, which could indeed be related to the website builder.
Could you test if it works inside of the regular WordPress block editor?
How are you adding the recipe in Avada?
This is the code that is written in the default editor : [/fusion_title][fusion_code][wprm-recipe-snippet][/fusion_code]
In avada, you can add elements and choose “Code block”, where you can insert the [wprm-recipe-snippet] or the [wprm-recipe id=”123″] code. The snippet works on the first recipe but not on the next ones.
I just noticed that there is also a “WP recipe maker” button on the default editor. Next to it there is another button : “Edit recipe” on the article where the snippet works, but not on the one where it doesn’t. So as you say, it is probably not properly detected. However, I put a link to the recipe in the article (La recette) that properly jumps to the recipe, so the ‘program’ has detected it.
Plugin Author
Brecht
(@brechtvds)
No difference at all between the post where it works and the one where it doesn’t? The recipe was added the exact same way when you check the text/code mode?
Yes, no difference at all. I cloned the article and changed the recipe ID in the short-code, so it is exactly the same except for the recipe number. The recipe changed but the snippet disappeared on the front-end.
Plugin Author
Brecht
(@brechtvds)
Removing the shortcode and adding it in again doesn’t work, I assume?
Did you test if it does work in a default editor?
I found the solution : adding the recipe short code in a “text” element rather than in a “Code block” element. The recipe appears the same way but now it is detected in the default editor (it wasn’t initially, but I had trouble reading the code). Now that the recipe is detected, the snippet appears.
Thanks for your availability !
Plugin Author
Brecht
(@brechtvds)
Oh, interesting. Happy to hear that worked. Just let me know if there’s anything else!
On a side note: instead of manually adding the [wprm-recipe-snippet] I usually recommend enabling “Automatic Snippets” on the WP Recipe Maker > Settings > Recipe Snippets page instead. Then the plugin automatically adds those snippets when it finds a recipe on the page.
Thanks for the review as well, by the way, I appreciate it!