I have since tried a blank and new php file and accessing it the same way - that worked. So I am now unclear why the existing file does not load at all. There are no errors. Here is the code start of the template part I am getting:
<?php
require_once WP_PLUGIN_DIR.'/themename/includes/file1.php';
require_once WP_PLUGIN_DIR.'/themename/includes/file2.php';
require_once WP_PLUGIN_DIR.'/themename/includes/file3.php';
if(isset($_GET["ict"])){
$id_category[] = "'{$_GET["ict"]}'";
$variable1= new file3();
I am trying to include a partial template and have read up on how to do so.
<div class="row">
<div class="col-md-12">
<?php get_template_part('/partials/category.php');
?>
</div>
</div>
The file I have included the above code in is in the theme main. The partial is in a folder in the theme main called partials. When I use /partials/category.php
I get a blank with no PHP error in the area of the page where the information should be.
If I dont use the /
on front of partials I get an error.
I have also tried removing the /
on the front and at the same time removing the .php
at the end. Same result where there is no error and no output
What am I missing about getting the template part to display>?
.php
extension?partials/category.php
actually has output?