• Resolved sderoany

    (@sderoany)


    Hello,

    I included the [wprm-recipe-snippet] code for the snippet of my first recipe to appear below the title on top of the article, and it works.

    However, I added the same code on other recipes, and nothing appears. The recipe is here, but the snippet is not. It doesn’t even appear on the source code of the page.

    I use avada website builder. I don’t know if the issue is coming from their builder or the wprm one.

    Do you have an idea what could be the cause ?

    THank you.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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?

    Thread Starter sderoany

    (@sderoany)

    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?

    Thread Starter sderoany

    (@sderoany)

    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?

    Thread Starter sderoany

    (@sderoany)

    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!

    Thread Starter sderoany

    (@sderoany)

    Thank you !

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

The topic ‘Snippet doesn’t appear’ is closed to new replies.