admin管理员组文章数量:1414614
I have installed / and wish to copy or migrate existing WordPress events to event-organizer.
Is there a method other than recreating each by hand?
Using WordPress v 5.2.3
I have installed http://wordpress/extend/plugins/event-organiser/ and wish to copy or migrate existing WordPress events to event-organizer.
Is there a method other than recreating each by hand?
Using WordPress v 5.2.3
Share Improve this question asked Sep 18, 2019 at 16:00 Michele RizackMichele Rizack 1011 bronze badge1 Answer
Reset to default 0You'll first need to determine what format your existing events are in, and what format the new events need to be in. Most plugins save events as a custom post type, so you'll usually find data on them in both wp_posts
and wp_postmeta
in the database.
Once you determine the format they're in and how that needs to change, you can either run queries directly in phpMyAdmin, or set up PHP to loop through and update them for you. If you run queries directly, and you're certain that both plugins store the events in the Posts table, you'll likely need to start with something like
UPDATE wp_posts SET post_type = 'event-organizer' WHERE post_type = 'event'
(If you are using a different database prefix, you'll need to change wp_posts
to yourcustomprefix_posts
.)
But, you'll also likely need to change some of the postmeta. It all just depends on the original format and the target format. You may want to contact the plugin authors or see if they have documentation, if you're not comfortable browsing through the database to determine where everything is stored and what format it's in.
Deciding whether to set up the new event type from scratch, or convert the old events, will mostly come down to how comfortable you are determining the formats and running queries or code, and how many events you have - even if you're comfortable with code it may simply be faster to copy them over by hand.
Also keep in mind that your URLs may change with the new plugin, and if so, you'll want to set up redirects so anyone with the old links (including search engines) can seamlessly hop to the new URLs.
本文标签: Existing WordPress events don39t show up in Events Organiser plugin
版权声明:本文标题:Existing WordPress events don't show up in Events Organiser plugin? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745149718a2644864.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论