<!-- Basic WP loop --><?phpif(have_posts()):while(have_posts()):the_post();?><!-- Do what ever you want here --><?phpendwhile;endif;?><!-- WP Query for the recent posts --><?php$recentpost=newWP_Query("showposts=6");while($recentpost->have_posts()):$recentpost->the_post();?><!-- Do what ever you want here --><?phpendwhile;?><!-- WP Query for the recent custom posts (in this example the type is portfolio) --><?php$recentPortfolio=newWP_Query('post_type=portfolio&posts_per_page=-1');while($recentPortfolio->have_posts()):$recentPortfolio->the_post();?><!-- Do what ever you want here --><?phpendwhile;?>
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.