AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Add custom forum pa...
 
Notifications
Clear all

[Closed] Add custom forum page with menu item

1 Posts
1 Users
0 Reactions
5,003 Views
Robert
(@robert)
Support Team Admin
Joined: 2 months ago
Posts: 10730
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#21199]

If you want to add a new page under the forum menu, you should use wpforo_page hook with Insert Page plugin.

1. Create the page in WordPress pages admin page, and find the page ID in the address bar:

 

2. Install the Insert Page plugin

 

3. Add the following hook code in your current active WordPress theme, or install the Code Snippets plugin and add new PHP code snippets in the plugin admin page:

function wpforo_page_new_page_1( $template ){
if( $template == 'new-page' ){
?>
<div class="wpforo-page wpforo-page-1 wpforo-text">
<?php echo do_shortcode("[insert page='11105' display='content']"); ?>
</div>
<?php
}
}
add_action( 'wpforo_page', 'wpforo_page_new_page_1', 10 );

Don't forget to change the 11105 ID to your page ID. Also, you can change the "new-page" slug to any phrase without spaces and special symbols. The new-page slug is used in the custom page URL

 

4. The new forum page URL will be :

 https://example.com/community/?wpforo=page&view=new-page 

 

5. You can add this page to wpForo menu, go to Dashboard > Appearance > Menus admin page, select wpForo Navigation in the drop-down, Use Custom Link to add a new menu item:


In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.


   
Share: