Hi @underro ,
We’re still investigating this issue as it’s hard to replicate but we do have a fix for this. Please add the snippet to your child theme’s functions.php or through WPCode
// Remove invalid product feed post
add_action('admin_init', 'delete_post_with_adt_product_feed');
function delete_post_with_adt_product_feed()
{
$args = array(
'post_type' => 'adt_product_feed',
'posts_per_page' => -1,
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'adt_file_name',
'value' => '',
'compare' => '=',
),
array(
'key' => 'legacy_project_hash',
'value' => '',
'compare' => '=',
),
),
);
$posts = get_posts($args);
foreach ($posts as $post) {
wp_delete_post($post->ID, true);
}
wp_reset_postdata();
}
Remove the snippets once everything’s fixed.
-
This reply was modified 1 year, 9 months ago by
Jeff Alvarez.
Thank you for the answer.
In the meantime, I tried several options and succeeded by changing the name of one of the duplicates/triples.
That’s how I managed to delete the others, but even though the url was left behind, the entities that browsed the url didn’t see it correctly.
I refreshed the feed several times, cleaned the cache, transients,… and only after a few days, they saw the feed correctly.
Now it seems that everything is ok.