<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <?php get_template_part('googleanalytics'); ?> <title>テスト</title> ... </head>※拡張子「.php」を付けたままにしないよう注意
【WordPress】phpを読み込む「get_template_part」の使い方
![【WordPress】phpを読み込む「get_template_part」の使い方](https://web-dragon.com/wp-content/uploads/2019/06/thumb_wp.png)
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <?php get_template_part('googleanalytics'); ?> <title>テスト</title> ... </head>※拡張子「.php」を付けたままにしないよう注意