I explained here how I did it:
https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer
Now is more easier with CMS Code control.
But for that you ask Themler would need to give you option to change loop. CMS Code control cannot do this:
// WP_Query arguments
$args = array (
'post_type' => 'test',
'post_status' => 'published',
'category_name' => 'test-taxonomy',
'pagination' => true,
'posts_per_page' => '5',
'order' => 'DESC',
'orderby' => 'date',
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();
And of course for those mini loops you need to delete all from head, footer and body line, or you end with multiple footers, heads, etc.
I explained here how I did it:
[https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer][1]
[1]: https://answers.themler.com/questions/10934/one-feature-that-would-make-themler-killer
Now is more easier with CMS Code control.
But for that you ask Themler would need to give you option to change loop. CMS Code control cannot do this:
// WP_Query arguments
$args = array (
'post_type' => 'test',
'post_status' => 'published',
'category_name' => 'test-taxonomy',
'pagination' => true,
'posts_per_page' => '5',
'order' => 'DESC',
'orderby' => 'date',
);
// The Query
$query = new WP_Query( $args );
// The Loop
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();
And of course for those mini loops you need to delete all from head, footer and body line, or you end with multiple footers, heads, etc.