PHP Classes

File: templates/single-post.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   WordPress Custom Post Type with Template   templates/single-post.php   Download  
File: templates/single-post.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: WordPress Custom Post Type with Template
Build WordPress pages from template scripts
Author: By
Last change:
Date: 11 months ago
Size: 632 bytes


Class file image Download
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
<!DOCTYPE html>
<html lang="en">

        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo esc_html($title); ?></title>

        <h1>Single Pet</h1>
        <p>This is a paragraph</p>
        <p>This is another paragraph</p>

// This is the data that was passed to the template
echo var_dump($data);