Dream Integration WordPress Blog System Method Introduction

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

In the dream site to integrate a WordPress system, for the increase in the number of sites to upgrade the site rankings are very helpful. This article describes in detail, how to use the Dream system Integration Call WordPress Blog system article.

1, Dream System and WordPress blog system installation.

Dream System and WordPress blog system in the installation should choose the same database installation. Otherwise, the integration of the two cannot be achieved. During the installation of two systems, three important parameters, including database name, database username, and database password should be consistent.

Dream System can be installed in the site root directory, wordpress blog system can be installed in the/blog directory.

Attention to the problem: Dream system and WordPress system in the reinstall, the database prefix can not conflict, otherwise it will cause both systems can not be used normally.

2, in the Dream System home page call WordPress blog system article

Here is the default dream template For example, explain how the Dream System home page call WordPress blog system's latest article.

1 Modify the Dream homepage Template:

In the Dream homepage template, add the following code to the appropriate location:

{dede:sql sql= ' select ID as post_id,post_title as Post_title,post_type from wp_posts where post_status = ' publish ' and POS T_type = ' post ' ORDER by post_date desc limit 0,10 "}
<a href= ' http://www.iesheji.com/blog/?p=[field:post_id/] ' >[field:post_title/]</a> |

Command explanation: The above code calls the dream-dreaming SQL tag. Dreaming SQL tags can directly read the contents of the database. The above SQL statement can invoke the latest published article in 10 WordPress.

Note the problem: The red code above wp_posts represents the WordPress system datasheet, please change the default database prefix wp_ to your wordpress system prefix. Please change the hyperlink URL to your website address.

2 Regenerate the Dream home page.

After the regeneration, The Dream System home page will be able to display the WordPress blog article.

This article introduced in detail, the most basic Dream System integrated WordPress blog method. If you need more personalized integration call requirements, please contact love Easy Design Shandong website Building Studio official. The original address of this article: Http://www.iesheji.com/News/news_255.html. Reprint please reserve the official link for easy design.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.