Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where are loops put?

Viewing 5 replies - 1 through 5 (of 5 total)

  • danbp
    Participant

    @danbp

    Loops are in templates.

    See bp-templates/bp-legacy/buddypress/

    And read carefully template hierarchy to understand how all this is working together.


    @mcuk
    Participant

    @mcuk

    Hi @danbp,

    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:

    bp-legacy>buddypress>activity>index.php

    Then call it within bp-custom.php?


    @mcuk
    Participant

    @mcuk

    * bp-legacy>buddypress>activity>index.php (in child theme folder)


    danbp
    Participant

    @danbp

    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. 😉


    @mcuk
    Participant

    @mcuk

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Where are loops put?’ is closed to new replies.
Skip to toolbar