Hi @myideasforsite,
Unfortunately I was unable to replicate this on my end. The rating stays the same each time I update the testimonial.
I recommend installing this plugin: https://ww.wp.xz.cn/plugins/health-check/
After you install and activate the above plugin it has a Troubleshooting mode which allows you to have a vanilla WordPress session, where all plugins are disabled, and a default theme is used, but only for your user – your visitors will still see the normal website.
Go to its troubleshoot mode and only activate ST and see if this still happens with a default WordPress theme and no other plugins.
Let me know if it does.
Thank you,
Mihaela
already fixed. I add my own hook, and get error because of it
function revDis()
{
$query = new WP_Query(array('post_type' => 'disease', 'posts_per_page' => -1, 'orderby' => 'title', 'order' => 'ASC'));
$cur_post_id = get_the_ID();
$query_meta = get_post_meta($cur_post_id, 'rev_dis');
$query_meta = unserialize($query_meta[0]);
$string = '<select multiple id="rev_dis" class="custom-input" name="rev_dis[]">';
foreach ($query->posts as $post) {
$selected = '';
in_array($post->post_title, $query_meta) ? $selected = "selected" : "";
//$query->the_post();
$string .= '<option ' . $selected . ' value="' . $post->post_title . '">' . $post->post_title . '</option>';
}
$string .= '</select>';
return $string;
}
add_shortcode('revinforDis', 'revDis');
line thant caused error $query->the_post();