single.php vs loop-single.php

Posted in: Newsmag
Post count: 38

How to I choose whether to input code into single.php vs loop-single.php

can someone please breakdown for me what each one does?

thanks,

Post count: 7909

Hi,

Depends where you want to display the code. Please take a look at loop-single file and you can see that are called there all post elements: title, meta info, featured image, content… – http://screencast.com/t/O6AyIzdo then this file(loop-single) is called in single template and there are 3 cases: http://screencast.com/t/s1faGQPUmgz
So if you want to add a code in the default post template, loop-single is most used because there are almost all post’s elements.

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.