[wp-hackers] CPT Loop Question - I am stumped!

Mike Walsh mpwalsh8 at gmail.com
Fri Oct 21 17:07:18 UTC 2011


It turns out the post id for the page wasn't being returned by my query - I
was looking at the value of get_the_ID() before actually calling
$loop->the_post() which explains why I was seeing the post id of the page.
 I'll tuck my tail and head back to working on my plugin ...

Mike

On Fri, Oct 21, 2011 at 11:34 AM, Mike Walsh <mpwalsh8 at gmail.com> wrote:

> I knew it would be something simple - thanks!  That fixes the ordering
> problem.  Still not clear why the query returns the post of the page I am
> building but at least the ordering is correct now.
>
> Thanks,
>
> Mike
>
> [ ... snipped ... ]
>
-- 
Mike Walsh - mpwalsh8 at gmail.com


More information about the wp-hackers mailing list