6 years, 5 months ago
Where are loops such as the Standard Loop in the link below put?
Do they go in the bp-custom.php file? How are they called into use on a new page?
Any help/guidance of where to look would be appreciated.
Loops are in templates.
And read carefully template hierarchy to understand how all this is working together.
Thanks for reply. Yeah i know about those. I meant where would I put custom loops with my own filters etc. The wordpress codex says to put them in index.php. I assume that for Buddypress that would be:
Then call it within bp-custom.php?
* bp-legacy>buddypress>activity>index.php (in child theme folder)
If you want to customize a loop, you simply copy the original file from legacy to your child-theme.
If you need a custom function to work on it, you add it to bp-custom.php or to your child-theme functions.php
Guess there is nothing special to call around index.php. Generally it’s entry.php or activity-loop.php which are concerned to customize activities.
That’s exactly the question why i told you to read carefully the codex first. 😉
Okidoke! Yeah I’ve read that page in the codex among many others trying to work out the whole Loop thing. Better read it again! Thanks Dan!
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service