Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created October 16, 2014 14:46
Show Gist options
  • Save joshfeck/9fac4cc2ca6ab09ba908 to your computer and use it in GitHub Desktop.
Save joshfeck/9fac4cc2ca6ab09ba908 to your computer and use it in GitHub Desktop.
Corsa theme home page template fix
<?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