Apr 01, 2025 3:07 pm
I created a new homepage template using this function per another thread I found on here:
function wpforo_page_show_courses( $template ){
if( $template == 'courses' ){...}
add_action( 'wpforo_page', 'wpforo_page_show_courses', 10 );
I want to use this as my homepage for the forum. I have added it in the menu and point to this page but I was wondering how I can set this as the default homepage so when going back from the profile page the "forum home" will redirect to my custom forum homepage instead and other URLs I might miss.
Also hoping to get a better slug as the page url is currently displayed like this ".../community/?wpforo=page&view=courses". I'm okay with keeping the current home page as "community" and having my custom homepage have a different URL but I am open to any suggestions! Thank you!
3 Replies
Apr 04, 2025 10:03 am
Hi,
For further support, we'll need more information. Please provide additional details about the function—what it is designed for, what page it's used on, and what that page includes, etc.