php - 如何在 php 网站上显示 wordpress 博客文章
问题描述
我有一个使用核心 php 设计的网站 xyz.com。我还有 1 个 wordpress 博客 xyz.com/blog。现在我想在 xyz.com/index.php 上展示来自 wordpress 博客的 4 篇博文摘录。
我尝试连接 wordpress 数据库(<?php include('blog/wp-config.php'); ?>
)并尝试从表中调用数据。
解决方案
推荐阅读
- python - 找到 conda 放置我安装的 python 包的位置
- c++ - GSSAPI:InitializeSecurityContext 返回的错误 0x80090311
- delphi - 如何对齐由 TImage 控件制成的自定义菜单,以便它可以正确拉伸到各种分辨率?
- python - matplotlib 加载内存并且不显示绘图
- java - Java:检查一个数组中的重复值并将一个更简单的 ID 分配给另一个相同大小的数组
- date - 在 sparksql 中将特定的字符串格式转换为日期
- global-variables - 在窗口对象Javascript中存储全局变量
- flutter - Flutter webview 无法将网页与屏幕匹配
- python - Django 测试导入使用来自真实数据库的内容类型值
- r - 地图上每个纬度和经度位置的 3D 点 (x, y, z) 子图