Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Do child themes have access to bp_core template tags?


peterverkooijen
Participant

@peterverkooijen

This is in the included file:

<?php if ( bp_has_members( 'type=active&per_page=10' ) ) : ?>

Inclusion works fine from both bp-sn-parent and the child theme folder, but when pulled in from the child theme I get the error.

So this works fine – but it takes members-loop.php from bp-sn-parent, which I don’t want:

<div id="member-dir-list">
<?php load_template( TEMPLATEPATH . '/directories/members/members-loop.php' ) ?>
</div>

But with this I get the ‘Call to undefined function bp_has_members()’ error, even though both versions of members-loop have the same function call:

<div id="member-dir-list">
<?php include get_bloginfo('stylesheet_directory').'/directories/members/members-loop.php'; ?>
</div>

EDIT: This works. No idea why…:

<div id="member-dir-list">
<?php include 'members-loop.php'; ?>
</div>

Skip to toolbar