I’m trying to create a single page for a custom post type.
<?php
use Roots\Sage\Setup;
use Roots\Sage\Wrapper;
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<?php get_template_part('templates/head'); ?>
<body <?php body_class(); ?>>
<!--[if IE]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage'); ?>
</div>
<![endif]-->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-T233H5S"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php
do_action('get_header');
get_template_part('templates/header');
?>
<div class="wrap container body" role="document">
<div class="content row">
<main class="main">
<?php include roots_template_path(); ?>
</main><!-- /.main -->
<?php if (Setup\display_sidebar()) : ?>
<aside class="sidebar">
<?php include Wrapper\sidebar_path(); ?>
</aside><!-- /.sidebar -->
<?php endif; ?>
</div><!-- /.content -->
</div><!-- /.wrap -->
<?php
do_action('get_footer');
get_template_part('templates/footer');
wp_footer();
?>
<script type="text/javascript" src="http://fast.fonts.net/jsapi/1fc1bd73-3304-4d37-a4e5-f2bf452b8a92.js"></script>
<div class="mobile-booking">
<a href="https://gc.synxis.com/rez.aspx?Hotel=66439&Chain=18511&arrive=12/1/2016">Book Now</a>
</div>
This is my code on my base-single-rooms.php but when I run this it fires an php error.
Call to undefined function roots_template_path()
If anyone could help it would be very helpful