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: 1 year ago
Size: 632 bytes
 

Contents

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

    <head>
        <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>
    </head>

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

        <?php
           
// This is the data that was passed to the template
           
echo var_dump($data);
       
?>
</body>

</html>