Created
January 31, 2018 22:00
-
-
Save kirasiris/ec82d99360b54c80f20e68ddd0d0d1d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
This technique is required in order to show content from a page(usually home(English) or inicio(Spanish) in the front-page.php file) | |
--> | |
<!-- The main content div --> | |
<?php global $post; ?> | |
<?php if($post->post_content): ?> | |
<?php if(have_posts()) : the_post(); ?> | |
<div class="container"> | |
<div class="row"> | |
<article> | |
<!-- The content --> | |
<?php the_content(); ?> | |
</article> | |
</div> | |
</div> | |
<?php endif; endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment