Good day!
I’m trying to create a custom page template for the search/archive/category pages.
I created a category.php and added the wp-index.php content from the stack that I’m using which is integrity
so this is the content
<?php x_get_view( 'global', '_index' ); ?>
The problem is when I visit any category page it’s resulting to an error
Warning: include(/var/www/html/wp-content/themes/xpro-child/index.php): failed to open stream: No such file or directory in /var/www/html/wp-includes/template-loader.php on line 74
Warning: include(): Failed opening ‘/var/www/html/wp-content/themes/xpro-child/index.php’ for inclusion (include_path=’.:/usr/local/lib/php’) in /var/www/html/wp-includes/template-loader.php on line 74
The same error appears on the search.php page template that I created though instead of x_get_view function I use the bare get_template_part function
Here’s the content
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( '/framework/views/c7-templates/_search-content', 'part'); ?>
<?php endwhile; ?>
<?php endif; ?>