wordpress-theme / template_simple.php
template_simple.php
Raw
<?php 

/* Template Name: template_simple */

get_header(); 
?>
    <article class='single-post'>
            <br> 
            <?php
            if( have_posts()){
                while( have_posts()) {
                    the_post();
                    ?>
                    <!-- add return btn to category -->
                    <?php

                    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
                    $thumbnail_url = get_the_post_thumbnail_url('', 'post-thumbnails');    
                    } 
                    ?>
                    <img class="page-img-wrapper"  src='<?php echo $thumbnail_url; ?>'>
                    <div class="singel-heading" style="font-size:2em; text-align:center"> <?php  the_title(); ?> </div> <br>
                    <div  class="singel-para">  <?php the_content(); ?> </div>
                    <br>
                    </p>
                    <?php 
                }
            } ?>
    </article>
    <?php get_footer(); ?>