error 404 for posts turned into events
-
Hi, on a website classic posts were used to advertise events, now with an update to the website I wanted to migrate the classic posts to the “event” post type.
To do this I used the plugin:
https://ww.wp.xz.cn/plugins/post-type-switcher/
used several times in other projects.
Once the posts have been converted to “event” if I try to open the event I get a 404 error However, I noticed that if I open the single event and click on save, the event is displayed correctly.
Now the problem is that there are several posts and I can’t do this for every single post.
I tried using the wordpress bulk editor but it doesn’t work, it only works if I open the single post and save it.
I would like to understand why this happens and how I can fix it I also tried adding dates through this snippet but it doesn’t work.
update_post_meta( $post_id, '_EventStartDate', '2022-12-31' ); update_post_meta( $post_id, '_EventEndDate', '2022-12-31' );I ran several tests like saving permalinks, rewriting permalinks, different wordpress environments/installations tested. it therefore seems that the problem is not related to the permalinks but to something that is saved when the post is saved.
The topic ‘error 404 for posts turned into events’ is closed to new replies.