Nonce error on shortcode
-
Hi there,
Sometimes I seem to be getting the following response;{"success":"no","message":"Nonce error"}
From the action “da_reactions_load_buttons”.
I am using the following in my template;<?php
if (is_plugin_active('da-reactions-premium/da-reactions.php')) {
global $post;
$item_type = $post->post_type;
$item_id = $post->ID;
echo do_shortcode('[reactions id="' . $item_id . '" type="' . $item_type . '"]');
}Refreshing the page does not seem to give me a new nonce. I am using FlyingPress as my caching solution.
Is there a good way to make sure the shortcode always renders instead of giving the above mentioned response? Hope you can help me with that.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Nonce error on shortcode’ is closed to new replies.