Sample Page

global $post,$wpdb;

	 $id = get_the_ID();
	 $post_id_1 = get_post($id);
	$post_id_1->post_title;
if (!defined('wp_iv_directories_URLPATH'))define('wp_iv_directories_URLPATH', trailingslashit(WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__))));
$wp_iv_directories_URLPATH=wp_iv_directories_URLPATH;

wp_enqueue_style('wp-iv_directories-myaccount-style-11', wp_iv_directories_URLPATH . 'admin/files/css/iv-bootstrap.css');

wp_enqueue_style('iv_directories-style-71', wp_iv_directories_URLPATH . 'assets/cube/css/cubeportfolio.css');
wp_enqueue_style('iv_directories-style-10', wp_iv_directories_URLPATH . 'admin/files/css/single-cpt.css');
wp_enqueue_style('wp-iv_directories-myaccount-style-11', wp_iv_directories_URLPATH . 'admin/files/css/bundle.3b69a11f.css');

require(wp_iv_directories_DIR .'/admin/files/css/color_style.php');
?>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<?php

$wp_directory= new wp_iv_directories();
 while ( have_posts() ) : the_post();

	if(has_post_thumbnail()){
		$feature_image = wp_get_attachment_image_src( get_post_thumbnail_id( $id ), 'large' );
		if($feature_image[0]!=""){
			$feature_img =$feature_image[0];
		}
	}else{
		$feature_img= wp_iv_directories_URLPATH."/assets/images/default-directory.jpg";

	}
	/*
	$currentCategory=wp_get_object_terms( $id, 'listing-category');
	$cat_link='';$cat_name='';$cat_slug='';
	if(isset($currentCategory[0]->slug)){
		$cat_slug = $currentCategory[0]->slug;
		$cat_name = $currentCategory[0]->name;
		$cat_link= get_term_link($currentCategory[0], 'listing-category');
	}
	*/
	$template_option='1';
	if(get_option('cpt_page_'.get_post_type())>0){
		$template_option='0';
	}
	if(get_option('cpt_page_'.get_post_type())==''){
		$template_option='1';
	}

	if($template_option=='1'){
	?>
<!--*///////////////////////////////////////////////// -->
<div class="o-box c-school-info">
    <div class="c-school-info__logo-wrapper">
          <img src="https://deenspot.co.uk/wp-content/themes/deenspot/assets/img/school.svg" alt="Illustration of a school building">