0
votes

just a quick one.

I've been given a custom Wordpress theme to replicate for another site, and when digging through the theme files, I noticed that the_post() is being used to output post content without the rest of the loop, i.e. no while(have_posts()) etc. So no the_title(), the_content(), and so on.

Is this a usual practise?? Can't seem to find anything about how or why this works!

If anyone can shed some light for me, that would be brilliant.

1

1 Answers

1
votes

It is possible that it is being used as a template that is called inside of a loop. If you search for references to that file in your project you should find the containing loop.