![]() |
zen cart调用wordpress博客系统文章的方法
把WordPress安装到zen-cart一个子目录里,做好优化装好插件,设置好固定连接等
这个文件/includes/templates/template_default/templates/tpl_product_info_display.php 在合适的地方加入下面两行代码 <?php require('../wordpress所在目录/wp-blog-header.php'); ?> 这行调用WordPress自带函数, 目录地址要随着WordPress安装目录变化而变化 <?php get_archives('postbypost', 10); ?> 这里的10指调用的最新文章个数。 |
| All times are GMT +8. The time now is 03:35 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.