[wp-hackers] Needed: More Elegant Solution for Using another "the
loop"
Mark Shields
laebshade at gmail.com
Mon Oct 11 11:43:50 UTC 2004
Great. I'll try that when I get to work today.
On Sun, 10 Oct 2004 23:49:11 -0400, Mark Jaquith
<mark.wordpress at txfx.net> wrote:
> Mark Shields wrote:
>
> >I tried and it doesn't work (the breadcrumb would fail and it would
> >break the real loop. Is it possible I need to declare $post as a
> >global?
> >
> Any variables you use in a function that are global need to be declared
> as global, yes. And actually, it's $posts (plural) that would have to
> be global, not $post. $post is just the foreach() of $posts... so if
> $posts can be pulled in, $post is created on the spot with the foreach().
>
>
>
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>
--
- Mark Shields
More information about the hackers
mailing list