###前提・実現したいこと
WordPressのテーマのfunction.php内でパンくずリストの設定をしています。
その際にホームとなる部分の名前を外部ファイルにして呼び出しをする形にしたいのですが、書き方が分からず質問いたしました。
検証などもままならない状態でのご質問となり大変申し訳ありませんが、お力を貸していただけますと幸いです。
不足している情報があればご指摘いただければ追記いたします。
###発生している問題・エラーメッセージ
Warning: include(smple.php </span></a></span>): failed to open stream: No such file or directory in (ディレクトリ名)/functions.php on line 319 Warning: include(): Failed opening 'sample.php </span></a></span>' for inclusion (include_path='.:/home/(サーバー名)/www/pear') in (ディレクトリ名)/functions.php on line 319
###該当のソースコード
PHP
1$sample.= '<a href="'. home_url() .'" itemprop="url"><span itemprop="sample"> '. include("sample.php") .' </span></a></span>';
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/07 02:48