Create Loop template for reusing the custom loop


Hi,

I am fairly new to Beans. So far, the support community is great. I have got answers to all my queries. However I am stuck here.

I have create a custom loop for my home page, following this

I have an option to move the custom loop code to my functions.php, so that it could be used and be applied to all the pages where the post loop is required.

My issue here is, putting all this customisation code in functions.php is all the way increating the clutter in the file. Besides this, there is no more modularity in code. Question here is, how do I create a custom template file, for minimun code repeatition, here loop.php, and use which hook to use it and how.

Thanks in advance.

Write a reply

Login or register to write a reply, it's free!