سؤال

I'm trying to figure out the best way to go about this and I have part of my solution, but I can't figure out all of it.

My ultimate goal is within a certain page template, to show the newest post from a CPT of a particular taxonomy, this seems to be the easiest and accomplished with this:

$args=array(
    'post_type' => 'portfolio',
    'post_status' => 'publish',
    'orderby' => 'date',
    'order' => 'DESC',
    'posts_per_page' => 1,
    'type' => 'featured'
);

$portfolio_query = new WP_Query($args);

The next part would be show all of other posts, with the exception of the post that is queried above.

Can this be done with a single loop, or will I need multiple loops with offset logic? I'm lost on how to accomplish this. TIA.

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى wordpress.stackexchange
scroll top