function get_template_part() problem
-
Hello
I created website in WordPress on local serwer
I cut my website into several php files
On subpages I put the same code as on the main page,only changing the content
After clicking on the menu, the main page redirects me to the subpage and this error is displayedFatal error: Uncaught Error: Call to undefined function get_template_part() in C:\xampp\htdocs\wordpress\wp-content\themes\web\contact.php:2 Stack trace: #0 {main} thrown in C:\xampp\htdocs\wordpress\wp-content\themes\web\contact.php on line 2
please help
Main page
<?php defined('ABSPATH') || exit ; get_template_part('head'); get_header(); get_template_part('slider'); get_template_part('content-index'); get_footer();?>
Subpage
<?php get_template_part('head'); get_header(); get_template_part('slider'); get_template_part('content-contact'); get_footer();?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘function get_template_part() problem’ is closed to new replies.