Created
October 16, 2014 14:46
-
-
Save joshfeck/9fac4cc2ca6ab09ba908 to your computer and use it in GitHub Desktop.
Corsa theme home page template fix
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
<?php | |
/* | |
Template Name: Home Page | |
*/ | |
define('ONE_PAGE_HOME', TRUE); | |
get_header(); | |
$corsa_query = new WP_Query(array( | |
'post_type' => 'us_main_page_section', | |
'post__in' => us_get_main_page_sections_order(), | |
'posts_per_page' => -1, | |
'orderby' => 'post__in', | |
'post_status' => 'publish', | |
)); | |
if ($corsa_query->have_posts()) | |
{ | |
while($corsa_query->have_posts()) | |
{ | |
$corsa_query->the_post(); | |
get_template_part('templates/main_page_section'); | |
} | |
} | |
get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment