Export/Import (Import/Export) of the data postWhile writing the post, can you will worry is how to back up the post and page to reserve missed host has died, then was later restored, right? Of course, in the IT world in General and in particular, the website do backup data backup that always urgent and make regular WordPress, no exceptions.But currently you are new to learn WordPress, so I will not say goodbye the way professional backup and full because your website now stays in localhost (if you follow from the first series ever) should not be necessary.But right now, I will show you how to use a tool that is built in to WordPress export/import content (Post, Page, Category, Tag, Comment). Meaning you can export (export) content into a file with xml format. and can import into a WordPress website or your website itself if lost data.However, exporting/importing this content can only export the content related to the post and page only. Also plugin, theme, the settings are not exported, backing up the entire set of data and their website will say in a separate article but not in this series.1. Export the contentsTo export content, you access the Dashboard-> Tools-> Export. Then you can select the content type to export, including:• All Contents: entire content relevant to the Post and Page, menu, custom field and custom post type.• Posts: entire content relevant to the Post.• Pages: the entire content relevant to the Page.Select the type of content is completed you can click the Download button to Export the File, it will download a file containing default dạng.xml contains data that you exported. This file has no major or subject you have much content or not.2. Enter contentWith the xml file that you exported out with WordPress, you can import the content on any website using WordPress including blog at http://wordpress.com service. To import content is also very simple, you just need to go to Tools-> Import and choose WordPress. It will ask you to install the WordPress plugin Import if you don't already have this plugin website, please press Install and Activate as a regular plugin. Then, you select the xml file that contains your data in the computer, and press the button Upload file and import to start importing data. It will ask you to specify the content is entered for a user on the website, or create a new one, you choose. Remember to tick the button Download and import file attachments to it loads the images/media from the exported website out and put up a website to be entered. Finally click the Submit button to enter the content. When entered, if any content already on your website then it will skip and enter only the new content. Also note that the posted date, Post also are preserved the original time rather than change the time and date you enter. That's okay, Have fun! to get back to the Dashboard.This function is used when?Thực ra sau này các bạn sẽ được học cách sao lưu (backup) dữ liệu và phục hồi (restore) thật hoàn chỉnh nên không sử dụng công cụ này để sao lưu dữ liệu dự phòng. Nhưng nó sẽ cực kỳ phổ biến về sau nếu bạn có sử dụng các theme trả phí vì các theme trả phí thường họ có một cái gọi là “dummy content”, tức là một gói nội dung có sẵn và sẽ được gói vào một file .xml, chỉ cần import vào là chạy để theme hiển thị hoàn chỉnh nhất, rồi sau đó là xóa các nội dung đó đi và tự đăng nội dung của mình lên.Vì vậy, đây là một tính năng tuy đơn giản nhưng ít nhất bạn nên biết tới để sau này có gặp file .xml kèm theo các gói theme là biết sẽ dùng tính năng này để nhập nội dung vào.Một số lưu ý khi nhập nội dungKhi nhập nội dung, không phải lúc nào nó cũng được suôn sẻ thế này, nhất là đối với các website có nhiều nội dung. Mình xin ghi ra một số lưu ý để nếu bạn có gặp thì không phải suy nghĩ nó bị lỗi gì:• Nếu các tập tin .xml có dung lượng lớn và bạn nhập trên một website WordPress chạy trên host (không phải localhost) thì có thể bị lỗi timeout vì quá thời gian chờ đợi. Bạn chỉ cần import 2, 3 lần là xong.• Các hình ảnh sẽ không được tải về thành công nếu website xuất ra đã xóa ảnh đó hoặc không còn hoạt động.• Khi nhập nội dung, hãy chú ý cái chữ Maximum Upload Size, đó là dung lượng tối đa của tập tin mà bạn được phép upload. Tùy theo host mà dung lượng này sẽ lớn hoặc nhỏ, nhưng sau này bạn dùng host thì thường sẽ là 25 – 100MB.Chỉ vậy thôi, bây giờ bạn có thể qua bài kế tiếp được rồi.
đang được dịch, vui lòng đợi..
