• Resolved code222

    (@code222)


    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.

    • This topic was modified 2 years, 2 months ago by code222.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Darian

    (@d0153)

    Hi @code222

    Thanks for reaching out. Let me help you with this one.

    Our plugins have undergone an update in V6, which includes the addition of custom tables. As a result, batch updates of events may not function entirely as expected due to these changes.

    Unfortunately, we don’t have a snippet that can batch-update multiple events. However, let me check with the team, and I’ll update you once I know more.

    Plugin Support Darian

    (@d0153)

    Hi @code222

    I appreciate your patience while I looked into this for you. After consulting with the team, I’m sorry to inform you that we currently don’t have a solution for batch-updating events. I understand this might not be the news you were hoping for, and I’m here to assist you further if you have any other questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like it has been some time since we received a response from you, therefore, I will consider this matter as resolved. If you require any further assistance, please do not hesitate to start a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘error 404 for posts turned into events’ is closed to new replies.