• Resolved 18anna06

    (@18anna06)


    I created a page template for my recipes with elementor. Inside is the shortcode to rate the post. Unfortunately it does not work. Each time I click on the stars, I get the message No rating submitted!.
    On other pages without elementor templates the rating does work.
    The template is for a custom post type “recipe”.

    I can share the username and password for the password protection via mail.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Blaz K.

    (@blazk)

    Hi @18anna06,

    my guess is that the plugin has problems identifying which post is being rated because the shortcode is added in the template not directly in the post. To verify this please add a shortcode like this [ratemypost id=”365″] and let me know if it works in this case.

    PS: Change id in the shortcode if necessary.

    Regards,
    Blaz

    Thread Starter 18anna06

    (@18anna06)

    Hi @blazk ,

    thanks for your reply, but unfortunately it did not work. We also changed the id in the shortcode.

    Do you have any other idea?

    Best regards,
    Anna

    Plugin Support Blaz K.

    (@blazk)

    Hi Anna,

    it’s hard to say without seeing the website. If you share a link with me, I can check it out.

    PS: Maybe it would be also good to ask Elementor developers what’s the procedure to embed a shortcode in a template. I’m unfortunately not that familiar with Elementor.

    Blaz

    • This reply was modified 4 years, 6 months ago by Blaz K..
    Thread Starter 18anna06

    (@18anna06)

    Hi @blazk ,

    okay here is the link: https://staging.lia-design.de/rezepte/kuerbiscremesuppe/

    Best regards,
    Anna

    Plugin Support Blaz K.

    (@blazk)

    I checked and it seems that the plugin has trouble identifying which post is being rated because the widget is added to the template. Therefore, it assumes that the template is being rated. As for the error, it appears because get_the_id in your case returns a string instead of an integer.

    In this case it would be best to ask the Elementor team what is the proper way to embed a shortcode that is post specific within their system. I’ll check out Elementor soon, but right now I unfortunately don’t have a solution as I never worked with Elementor.

    Blaz

    Thread Starter 18anna06

    (@18anna06)

    Hi @blazk ,

    thank you for your explanation. I solved that problem with the following steps:
    1. Create ACF Field
    2. Set [ratemypost] as default
    3. Add value of ACF field as dynamic content to a text field in the template

    Best regards,
    Anna

    Plugin Support Blaz K.

    (@blazk)

    Hi Anna,

    thank you very much for sharing this with me. I added the steps in the documentation.

    Regards,
    Blaz

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘RMP does not work with elementor templates’ is closed to new replies.