Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: wire post at the home page…


Ali Erkurt
Participant

@alierkurt

i’ve created a new function like that:

function bp_my_custom_wire_post() {

echo my_custom_wire_post();

}

function my_custom_wire_post() {

global $bp;

if ( empty( $bp->current_item ) )

$uri = $bp->current_action;

else

$uri = $bp->current_item;

if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) {

return apply_filters( 'my_custom_wire_post', $bp->loggedin_user->domain . $bp->wire->slug . '/post/' );

}

}

and i’ve created a new customized post-form.php for myself. i gave it “mywirepost.php” name. and then i put my locate code to my homepage:

locate_template( array( '/wire/mywirepost.php' ), true );

that’s all :). i’ve solved my own problem and that’s way how you learn better :). thank you brajesh for your help.. i appreciate your interest. regards.

Skip to toolbar