Is there a way to pull the excerpts of the latest three items added to the portfolio, into a particular post? I know this is outside the support of the template, but thought you might know a neat way of doing this. Thanks.
Portfolio in posts
2 posts from 2 voices-
Posted 2 years ago #
-
You can pull them into a custom page template, but not directly through another post.
This code should get you started, just include it where you want the 3 Portfolio excerpts to appear:
<?php $additional_loop = new WP_Query("post_type=portfolio&posts_per_page=3"); while ($additional_loop->have_posts()) : $additional_loop->the_post(); the_excerpt(); endwhile; ?>Posted 2 years ago #
Reply
You must log in to post.














