Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #593

    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.


    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:

    $additional_loop = new WP_Query("post_type=portfolio&posts_per_page=3");

    while ($additional_loop->have_posts()) : $additional_loop->the_post();

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Portfolio in posts’ is closed to new replies.