如何将 WordPress 博客嵌入/集成到我自己的网站中?
我已经有一个 WordPress 博客帐户 (abc.wordpress.com)。我有自己的网站:www.xyz.com
我想将我的 WordPress 博客内容集成到我自己的网站中。希望像 blog.xyz.com 这样的东西,或者只是用 abc.wordpress.com 替换 xyz.com 的主页
我知道我可以从 wordpress.org 下载 WordPress 的代码并运行我自己的 WordPress。并拥有自己的 MySQL 数据库,但 WordPress 总是发布新代码。我没有时间不断更新源来匹配它。
我将运行自己的网站作为一种爱好,因此我更愿意让 WordPress.com 为我管理内容并继续重复使用我自己的博客 abc.wordpress.com,但让内容显示在我自己的网站中:xyz .com
我希望我在解释这一点时很清楚。
有人知道如何做到这一点吗?
谢谢。
I have a WordPress blog account already (abc.wordpress.com). And I have my own web site: www.xyz.com
I would like to integrate my WordPress blog content into my own site. Hopefully something like blog.xyz.com or just replace the home page of xyz.com with abc.wordpress.com
I know that I can download WordPress' code from wordpress.org and run my own WordPress. And having my own MySQL database, but WordPress is always releasing new code. I don't have the time to keep updating the source on my end to match it.
I'm running my own site as a hobby, so I prefer to let WordPress.com to manage the content for me and continue reuse my own blog at abc.wordpress.com, but make the content show up in my own site: xyz.com
I hope I was clear when explaining this.
Anyone knows a way to do this?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您主要担心的是更新,我会说不必担心。只需单击 WordPress 管理中的“更新”按钮即可应用 WordPress 更新。将会弹出一条通知,提醒您有任何更新。
正如 Calle 已经提到的,您可以通过 RSS 检索内容,或者您可以从 Wordpress.com 导出当前内容,将内容导入到您自己的网站中,并在那里进行管理。一切都将集中在一处。
祝你好运。
If your main worry is about the updates, I would say don't be. A simple click of the 'Updates' button in the wordpress admin is all you need to do in order to apply the updates for wordpress. A notification will pop up alerting you of any updates.
And as Calle has already mentioned, you can retrieve your content via RSS, or you could just export your current content from Wordpress.com, import the content into your own site, and manage it there. Everything would be in one spot.
Good Luck.
我不知道您的编程水平如何,但是有一个名为 Simple Pie 的 PHP 库,它可以帮助您通过 RSS(Wordpress 自动为您生成)检索内容。地址在这里: http://simplepie.org/
如果你不太擅长编程,也许你可以得到有人为您做这件事或找到已经在某处编写的脚本。我确实认为 RSS 绝对是最好的方式。
我还认为你夸大了自己托管 WordPress 的问题。这不是你必须保持更新的东西,如果你愿意,你所要做的就是不时登录,也许每月一次(你写文章的频率是多少?),然后单击“更新”并WordPress 将为您做一切。适用于您的插件和 WP 版本。
I don't know how good you are with programming but there's a PHP library called Simple Pie which would help you retrieve your content via RSS (which Wordpress automatically generates for you). The adress is here: http://simplepie.org/
If you are not very good with programming, perhaps you can get someone to do it for you or find a script which is already written somewhere. I do think RSS is definitely the best way to go.
I also think you exaggerate the problems of hosting Wordpress yourself. It's not something that you have to keep updated with, and if you want to, all you have to do is log in from time to time, perhaps once a month (how often are you writing articles?), and click "update" and Wordpress will do everything for you. Both for your plugins and WP version.
为了能够使用您自己的域 (xyz.com) 并使 WordPress 将用户从 abc.wordpress.com(您的 WordPress 博客)重定向到您的域,需要高级帐户。
如果您有高级帐户,则只需登录 wordpress.com,单击“升级”并选择“域名”即可。从那里您将看到“映射现有域”选项,并且您需要在此处输入您的域。现在,当用户输入您的域名网址 (xyz.com) 时,将显示您的 wordpress.com 博客。
或者,如果您需要使用免费的 wordpress.com 帐户来解决问题,那么您只想嵌入您的博客,为此您将需要使用 RSS 源。注意:此方法不会维护您的 WordPress 样式,它只会传输内容。另外,默认情况下,并非所有浏览器都支持 RSS 源。
您可以通过在 wordpress.com 网址末尾添加“feed”(即 abc.wordpress.com/feed)来查看博客的当前提要。您可以在此处阅读有关 Feed 的更多信息 (http://en.support.wordpress.com/feeds/)。现在您剩下的任务就是弄清楚如何将提要嵌入到您的页面中。
您可能会尝试的最后一招就是将您的域名重定向到您的博客。有关如何以不同方式执行此操作的参考,请参见此处:(http://css-tricks.com/redirect -网页/)。例如,将此标签放置在您的域名页面部分:(
这将在 0 秒后重定向到指定的 url)
For the ability to use your own domain (xyz.com) and have wordpress redirect users from abc.wordpress.com(your wordpress blog) to your domain requires a premium account.
If you have a premium account then you can just log in to wordpress.com, click 'upgrades' and select 'domains'. From there you will see the option "Map an Existing Domain" and you will want to enter your domain here. Now your wordpress.com blog is what will show when users enter your domain's url (xyz.com).
Alternatively, if you need a workaround with a free wordpress.com account then you want to just embed your blog and for that you will need to use an RSS feed. Note: this method will not maintain your wordpress styles it will merely transport the content. Also by default not all browsers support RSS feeds.
You can view your blog's current feed by adding 'feed' to the end of your wordpress.com url, i.e. abc.wordpress.com/feed. You can read more about feeds here (http://en.support.wordpress.com/feeds/). Now you are just left with the task of figuring out how to embed the feed into your page.
One final hail-mary you might attempt is just redirecting your domain to your blog. Reference on how to do this different ways here: (http://css-tricks.com/redirect-web-page/). Example, place this tag in the section of your domains pages:
(this will redirect after 0 seconds to the specified url)