<?php
/*
* Template name: HomePage Template
* Description: Homepage Template use to create your home page as a default view.
*
*
*/
?>
<?php get_header(); ?>
<!-- ABOUT -->
<article class="column about">
<div class="desc">
<div class="content">
<h1 class="page-title"><?php the_title(); ?></h1>
<div class="grids">
<div class="grid-12">
<?php//get page content and display ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?//this will echo the page content ?>
<?php the_content(''); ?>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</article>
<?//php get_sidebar(); ?>
<?php get_footer(); ?>
This is my custom template code. So Now I want to get the content using short-code. It’s mean, I’m going to put category short-code in page content area. So, If we create a right short-code for it. Then it will display in page.