Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
外部(サーバーから)のhtmlコンテンツをブロック領域に表示するにはどうすればよいですか。
私がこれまでに行ったことは、自分のサイトに sitemap という新しいブロックを作成し、いくつかの php コードを配置したことです。
<?php include('../sitemap/sitemap.html'); ?>
このブロック領域をフッターに設定します。
しかし、何も表示されないので、助けてください。
インクルードファイルのパスが間違っている可能性があります。より良い結果を得るには、そのファイルをテーマ フォルダーに入れて呼び出すことができます。
<?php include(path_to_theme().'/sitemap.html'); ?>