Import data from an existing wordpress blog
-
Hi. We have a WordPress blog currently hosted outside WordPress.com. We would like to migrate it to WordPress.com. Questions:
– Can we import the data to the new WordPress.com blog?
– We have a customized PHP code that is called every time a post is published. It is possible to add this PHP code to the standard template we choose to use in the WordPress.com blog?Thanks.
Luis.
The blog I need help with is: (visible only to logged in users)
-
Hi there Luis,
Absolutely. You can import your data from your old WordPress blog into WordPress.com. Here’s some information on how to import your data. You’ll simply export the data from the WP Admin console in your old blog (Under tools -> Export).
Now, I’m afraid that you won’t be able to modify or add any PHP code, or any of the templates. On the Premium plan, you will be able to modify CSS, but that’s about the extent of the modification you can do. You can check out the features of the plans here. This is mainly to protect against potentially dangerous or malicious code.
I’d recommend trying out a free WordPress.com blog to see if you can do what you’re looking to.
You may be able to do something with the business plan, and a plugin, perhaps. I cannot say for sure, however.
What’s the added code do? Perhaps there’s an equivalent feature available.
~Chris
-
Thanks for your prompt reply, Chris.
Let me share with you the purpose of this PHP code to see if you can give us an alternative.
We have a literature blog using WordPress since 2010. We published texts every day, from Monday to Saturday, based on a “challenge” we define for the week. This “challenge” post is always published on Mondays, early in the morning. I created a set of categories to be make this happen: “text”, “challenge”, and categories that identify all the weeks in the year individually.
I built this PHP code to be able to do two things:
1) At the bottom of the “challenge” post, the code shows a list of all the texts (“text” posts) that have been published for the challenge. This list has only the date and title of the post, with an embedded link (if you click on the title, you are redirected to the corresponding post).
2) At the bottom of the “text” post, the code shows the “challenge” upon which the text is based. Here, we also show only the date and title of the “challenge” post, with an embedded link (if you click on the title, you are redirected to the “challenge” post).
We also have a specific page where we list all the “challenges” that have been published so far. But this seems to be something we can do using standard WordPress functions since is just a matter of listing posts which belong to a specific category. But please confirm.
I do appreciate your support and look forward to hearing from you.
We are thinking about subscribing for the Premium plan.
Best, Luis.
-
Hi there,
There is no FTP access on WordPress.com, so there’s no way to add or edit your site’s PHP files, period. If you have a Business Plan you might be able to inject the code using a plugin, but I don’t know of any specific plugin that can do this so you’ll need to ask in the self-hosted forums for suggestions regarding that.
https://wordpress.org/support/
1) At the bottom of the “challenge” post, the code shows a list of all the texts (“text” posts) that have been published for the challenge.
Will these posts be published on your own site or on other sites? If they’re published on your own site, you can use the display posts shortcode to list the posts, provided they’re all using a specific category or tag:
If they’re on other sites, they can be listed via pingbacks in the comments. A pingback should be generated automatically if anyone includes a link to the challenge post in the post they publish on their own WordPress sites.
There’s no other way to do what you want to do here on WordPress.com.
Also note that you can only import a standard WordPress .xml file which you can generate under Tools ->Export in the WP-Admin dashboard. That file will contain your posts, pages, comments, and links to your media files in the source site’s media library. No other data/files can be imported on WordPress.com.
- The topic ‘Import data from an existing wordpress blog’ is closed to new replies.