wordpressで下記のようなエラーが出て解読できない状態にあります。
Call to undefined function get_filed()部分でそんな関数無いぞといわれているのはわかったのですが、それ以降のコードが何を意味しているのか分からない状態です。
どなたか教えていただけないでしょうか。
ちなみに下記コードは、「search.php」に「new WP_Query」で取得した物のループ内でカスタムフィールドを取得しようとして表示されております。
Fatal error: Uncaught Error: Call to undefined function get_filed() in /home/test/www/elc2/wp/wp-content/themes/elc/search.php:75 Stack trace: #0 /home/test/www/elc2/wp/wp-content/themes/elc/functions.php(76): include() #1 /home/test/www/elc2/wp/wp-includes/class-wp-hook.php(286): search_no_keywords('') #2 /home/test/www/elc2/wp/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/test/www/elc2/wp/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home/test/www/elc2/wp/wp-includes/template-loader.php(12): do_action('template_redire...') #5 /home/test/www/elc2/wp/wp-blog-header.php(19): require_once('/home/test/www...') #6 /home/test/www/elc2/index.php(17): require('/home/test/www...') #7 {main} thrown in /home/test/www/elc2/wp/wp-content/themes/elc/search.php on line 75
回答2件