admin管理员组文章数量:1323335
I'm working with WordPress customization, I created a template who has the following code
<?php
/*
Template name: Master Template
*/
get_header();
?>
<body>
<?php
if(have_posts()):
while(have_posts()):
the_post();
the_content();
endwhile;
endif;
?>
</body>
<?php
get_footer();
?>
I used this template in "Test" page it was working correctly before I removed "Test" page text and add a new one, after adding new text it is showing fatal error. I don't know why it is throwing this error. I tried to remove new added text(added from elementor) and also remove body code but still getting same error.
Error:
Fatal error: Uncaught Error: Call to undefined function twentytwenty_the_post_meta() in /nas/content/live/betterworldstg/wp-content/themes/twentytwenty/template-parts/entry-header.php:70 Stack trace: #0 /nas/content/live/betterworldstg/wp-includes/template.php(725): require() #1 /nas/content/live/betterworldstg/wp-includes/template.php(672): load_template('/nas/content/li...', false) #2 /nas/content/live/betterworldstg/wp-includes/general-template.php(168): locate_template(Array, true, false) #3 /nas/content/live/betterworldstg/wp-content/themes/twentytwenty/template-parts/content.php(20): get_template_part('template-parts/...') #4 /nas/content/live/betterworldstg/wp-includes/template.php(725): require('/nas/content/li...') #5 /nas/content/live/betterworldstg/wp-includes/template.php(672): load_template('/nas/content/li...', false) #6 /nas/content/live/betterworldstg/wp-includes/general-template.php(168): locate_template(Array, true, false) #7 /nas/content/live/betterworldstg/wp-content/themes/twentytwenty/singular.php(24 in /nas/content/live/betterworldstg/wp-content/themes/twentytwenty/template-parts/entry-header.php on line 70
Please help me.
本文标签: templatesUncaught Error Call to undefined function twentytwentythepostmeta()
版权声明:本文标题:templates - Uncaught Error: Call to undefined function twentytwenty_the_post_meta() 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742135985a2422370.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论