Skip to content

Instantly share code, notes, and snippets.

@sroberson
Created June 3, 2019 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sroberson/30cefbf59b1b10b5667d2bca293dcff6 to your computer and use it in GitHub Desktop.
Save sroberson/30cefbf59b1b10b5667d2bca293dcff6 to your computer and use it in GitHub Desktop.
<?php
/**
* Template part for displaying page content in page.php
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package hdms
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="container fat-margin">
<div class="entry-content">
<?php
the_content();
?>
<?php echo do_shortcode("[my_shortcode]"); ?>
<p><strong>the above lives in php calling:</strong></p>
<pre>
&lt;?php echo do_shortcode("[my_shortcode]"); ?&gt;
</pre>
</div><!-- .entry-content -->
</div><!-- .container -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php
/**
*Template Name: Page
*
*/
global $pageType;
$pageType = "tier";
get_header();
get_template_part( 'template-parts/navigation');
?>
<main id="main" class="main-container">
<?php
while ( have_posts() ) :
the_post();
get_template_part( 'template-parts/content', 'page' );
endwhile; // End of the loop.
?>
</main>
<?php
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment