[wp-hackers] the_content doesn't work in post-type archive template

Mark E mark at simplercomputing.net
Fri Jul 22 02:25:32 UTC 2011

I've seen that symptom when $post isn't globalized (e.g. "global $post") 
-- make sure that's not the issue.


On 07/20/2011 03:49 AM, Rocio Valdivia wrote:
> Hi!,
> I'm developing a twentyeleven child theme. I have created some custom post
> types, and one of them is called 'photos'. And because I wanted to customize
> the archive for this custom post type, I have created the template:
> archive-photos.php. It was going perfectly, excepts for one thing: the
> functions the_content() and the_excerpt() are not working properly in this
> template. If I use echo get_the_content(); it works fine. I wanted to know
> if it has happened to someone else before.

More information about the wp-hackers mailing list