PHP Classes

File: templates/archive-posts.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   WordPress Custom Post Type with Template   templates/archive-posts.php   Download  
File: templates/archive-posts.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: 2 years ago
Size: 621 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>This is awesome</title>
    </head>

    <body>
        <h1>This is awesome</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>