Hi Brajesh,
I need to create a new component called Contact. Basically a page where I can put in my contact form. I am doing something like this, but this re directs me to 404 page
function show_contact_link(){
echo '<a href="';
site_url();
echo 'contact">Contact</a>';
}
//now the code to handle /contact url
function bp_contact_screen_function() {
global $bp;
if($bp->current_component=="contact"){
bp_core_load_template( apply_filters( "contact_my_contact", 'contact' ) );
}
}
add_action( 'wp', 'bp_contact_screen_function',5);
function bp_is_contact(){
global $bp;
if($bp->current_component=="contact")
return true;
return false;
}