Created
June 19, 2015 16:19
-
-
Save amielucha/e07d5804fa88a7ebd196 to your computer and use it in GitHub Desktop.
Toolset Layouts theme integration
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 | |
/* | |
* Use the Toolset Layouts loop if it's active. | |
* Usage: Replace the standard loop in the template file | |
*/ | |
if ( function_exists('the_ddlayout') ) { | |
// Toolset Layouts | |
the_ddlayout(); | |
} else { | |
// Standard WP loop | |
while ( have_posts() ) { | |
the_post(); | |
get_template_part( 'content', 'page' ); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment