[wp-pro] Pages in Wordpress 3.0

Jared Williams jaredwilli at gmail.com
Mon Jun 21 15:05:16 UTC 2010


I'm pretty sure you have always needed to call the_title() within the page
loop. If you were previously using it outside the loop, maybe you had a
separate loop using WP_Query which it was being called in. Either way, I
don't see a way to display a post/page title without making a query to the
db somehow.


On Mon, Jun 21, 2010 at 10:51 AM, Gavin Pearce <Gavin.Pearce at 3seven9.com>wrote:

>  Hi guys,
>
>
>
> I'm sure it's something obvious on my behalf, but do any of you know why as
> of Wordpress 3.0, in Page Templates, you can no longer call "the_content()"
> without being in the loop, or calling "the_post()" first?
>
>
>
> Strangely, I can still call other functions such as the_title() with no
> problem. Seems a strange behaviour, as surely on a single page, there isn't
> really anything to "loop" through.
>
>
>
> Cheers,
>
> Gav
>
>
>
> _______________________________________________
> wp-pro mailing list
> wp-pro at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-pro
>
>


-- 
Thank you,

Jared Williams
Web/Graphic Designer
Tweeaks.com  |  New2WP.com
Portfolio:
http://Tweeaks.com/portfolio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-pro/attachments/20100621/bf54f462/attachment.htm>


More information about the wp-pro mailing list