0

How can i display external(from server) html content into block region.

let me tell you what i did so far is i created a new block on my site called sitemap and put some php code

<?php include('../sitemap/sitemap.html'); ?>

and set this block region to footer.

But it show nothing so plz help me so i do it.

4

1 回答 1

0

也许包含文件路径是错误的。为了获得更好的结果,您可以将该文件放在主题文件夹中并调用它。

<?php include(path_to_theme().'/sitemap.html'); ?>
于 2012-09-10T11:08:02.430 回答