-1
私が作ったHTMLサイトからカスタムWordPressテーマを作成しようとしています。私はindex.php
ファイルに私のindex.html
ファイルのすべてのコンテンツを挿入し、対応するPHPラインですべてのスクリプト、リンク、画像ソースを変更イメージ内のURLがカスタムWordPressテーマで動作しない
<?php echo get_bloginfo('template_directory'); ?>/
すべてがJavaScriptファイルを含め、正常に動作します。しかし、別のファイルに分割する前に別のファイル(header.php
、content.php
、footer.php
)にまとめて入れても、画像URLは.css
ファイルから挿入されている以外はすべて正常に機能します。
これは私のindex.phpの外観です。
<?php get_header(); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
get_template_part('content', get_post_format());
endwhile; endif;
?>
<?php get_footer(); ?>