Files not found from page template
-
I am trying to create a template for a page to show an Availability Calendar and have placed all the necessary files in a folder called calendar in the root of the site. The template is at wp-content/themes/theme-folder/templates/template-calendar.php
I have tried all ways to set the url in the template to find a file in the calendar folder but nothing seems to work.
Placed this at the top of the template
<?php // include the calendar file $the_file="https://mydomain.co.uk/calendar/ac-includes/cal.inc.php"; if(!file_exists($the_file)) die("<b>".$the_file."</b> not found"); else require_once($the_file); get_header(); ?> ?>
etc etc
and get file not found. Have tried moving files and various url options but always file not found.
Could anyone give me a pointer.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Files not found from page template’ is closed to new replies.