#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
General Category
Frequently Asked Qu...
Add custom forum pa...
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Closed] Add custom forum page with menu item

    Last Post
  RSS

Robert
 Robert
(@robert)
Support Team Admin
Joined: 6 years ago
Posts: 9089
Robert - Twitter
Topic starter May 1, 2022 7:25 am  

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:

  • URL: https://example.com/community/?wpforo=page&view=new-page
  • Menu Text: New Page

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.


Topic Tags
custom forum page page inside forum
  All forum topics
  Previous Topic
Topic Tags:  custom forum page (4), page inside forum (1),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Font Awesome Icons

    By seancallahan, 7 hours ago

  • Notification bell order

    By teepeenomad, 1 day ago

  • Not İndexing

    By selinahub, 2 days ago

  • H1 to H6 title tags : remove

    By venus, 2 days ago

  • Can't access forum dashboard 504 gateway time-out

    By Joselito, 3 days ago

  • Sharing with Facebook and Twitter is kind of broken

    By seancallahan, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • shortcode32
  • spam31
  • forum accesses30
  • widget29
View all tags (2188)

Recent Posts

  • Font Awesome Icons

    To start, I do not have any caching setup on the site o...

    By seancallahan, 7 hours ago

  • RE: Is there a way to add safety features?

    @chris Is there a way for me to install 2.0 on my site ...

    By seancallahan, 9 hours ago

  • RE:

    By Anonymous, 53 years ago

  • RE: Notification bell order

    @tutrix Brilliant, thank you for this! Although, it ...

    By teepeenomad, 13 hours ago

  • RE: wpForo 2.0.0.1 beta version is released for beta testers!

    Added, thank you.

    By Robert, 1 day ago

  • RE: Post title length error.

    Hi @hasanaytac, Please provide your forum URL.

    By Chris, 2 days ago

  • RE: Health.gd Health website

    Nice forum, still you have an issue / crash: Uncaught...

    By dimalifragis, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,925 Topics
50.2 K Posts
10 Online
47.6 K Members

Latest Post: Font Awesome Icons Our newest member: [>>>] Тор Любовь И Гром Смотре... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation