質問編集履歴
2
日本語部分の伏字を●●●に統一しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,19 +9,18 @@
|
|
9
9
|
エラーメッセージは以下のとおりです。
|
10
10
|
|
11
11
|
|
12
|
-
Fatal error: Uncaught Error: Call to undefined function get_field() in /Applications/XAMPP/xamppfiles/htdocs/
|
12
|
+
Fatal error: Uncaught Error: Call to undefined function get_field() in /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-content/themes/●●●/●●●/●●●.php:25
|
13
13
|
|
14
14
|
Stack trace:
|
15
|
-
#0 /Applications/XAMPP/xamppfiles/htdocs/
|
15
|
+
#0 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(724): require()
|
16
|
-
#1 /Applications/XAMPP/xamppfiles/htdocs/
|
16
|
+
#1 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(671): load_template('/Applications/X...',false)
|
17
|
-
#2 /Applications/XAMPP/xamppfiles/htdocs/
|
17
|
+
#2 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(168): locate_template(Array, true, false)
|
18
|
-
#3 /Applications/XAMPP/xamppfiles/htdocs/
|
18
|
+
#3 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-content/themes/●●●/header.php(63): get_template_part('template-parts/...')
|
19
|
-
#4 /Applications/XAMPP/xamppfiles/htdocs/
|
19
|
+
#4 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(722): require_once('/Applications/X...')
|
20
|
-
#5 /Applications/XAMPP/xamppfiles/htdocs/
|
20
|
+
#5 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(671): load_template('/Applications/X...', true)
|
21
|
-
#6 /Applications/XAMPP/xamppfiles/htdocs/
|
21
|
+
#6 /Applications/XAMPP/xamppfiles/htdocs/●●●/wp-includes/●●●.php(41): locate_template(Array, true)
|
22
|
-
#7 /Ap in/Applications/XAMPP/xamppfiles/htdocs/
|
22
|
+
#7 /Ap in/Applications/XAMPP/xamppfiles/htdocs/●●●/wp-content/themes/●●●/●●●/●●●.php on line25
|
23
23
|
|
24
|
-
|
25
24
|
### 試したこと
|
26
25
|
<?php get_header(); ?>や<?php get_footer(); ?>を消して、
|
27
26
|
区切られていたheaderやfooterをメインコンテンツとつなげて1ページで記述すると
|
1
エラ〜メッセージ追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,6 +6,22 @@
|
|
6
6
|
XAMPPを導入し、オリジナルテーマも読み込めたのですが
|
7
7
|
実際のサイトがheader.phpしか読み込まれず困っております。
|
8
8
|
|
9
|
+
エラーメッセージは以下のとおりです。
|
10
|
+
|
11
|
+
|
12
|
+
Fatal error: Uncaught Error: Call to undefined function get_field() in /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-content/themes/テーマフォルダ/●●●/ナビゲーション.php:25
|
13
|
+
|
14
|
+
Stack trace:
|
15
|
+
#0 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート.php(724): require()
|
16
|
+
#1 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート.php(671): load_template('/Applications/X...',false)
|
17
|
+
#2 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート2.php(168): locate_template(Array, true, false)
|
18
|
+
#3 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-content/themes/テーマフォルダ/header.php(63): get_template_part('template-parts/...')
|
19
|
+
#4 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート.php(722): require_once('/Applications/X...')
|
20
|
+
#5 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート.php(671): load_template('/Applications/X...', true)
|
21
|
+
#6 /Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-includes/テンプレート2.php(41): locate_template(Array, true)
|
22
|
+
#7 /Ap in/Applications/XAMPP/xamppfiles/htdocs/任意のWPフォルダ/wp-content/themes/テーマフォルダ/●●●/ナビゲーション.php on line25
|
23
|
+
|
24
|
+
|
9
25
|
### 試したこと
|
10
26
|
<?php get_header(); ?>や<?php get_footer(); ?>を消して、
|
11
27
|
区切られていたheaderやfooterをメインコンテンツとつなげて1ページで記述すると
|
@@ -15,7 +31,6 @@
|
|
15
31
|
ローカルで読み込まれないのでしょうか?
|
16
32
|
ファイルはなるべく現行のまま、変更作業をローカルでしたいので、
|
17
33
|
|
18
|
-
|
19
34
|
### 補足情報(FW/ツールのバージョンなど)
|
20
35
|
iMacの最新バージョン(10.15)を使用
|
21
36
|
エディターはSublime text使用
|