Notifications
Clear all

wpForo 1.x.x [Closed] this is out of the wpforo environment

2 Posts
2 Users
0 Reactions
845 Views
Posts: 1
Topic starter
(@sylvlondon)
New Member
Joined: 5 years ago

Hello

I tried to include a forum directly in my template using : 

<?php echo do_shortcode('[wpforo]'); ?>

 

And get

this is out of the wpforo environment

Any idea why and how to make it works ?

1 Reply
Alvina
Posts: 1862
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @sylvlondon,

The wpForo is a huge forum, besides shortcode, it has hooks too. So you need via hooks or the shortcodes make sure that the page is the wpForo page. In case if the page isn't wpForo page(with URL's, settings, or the valid shortcode) that means you can not call the wpForo in each place you want via custom code.

Also, please read this doc on how to add the wpForo shortcodes: https://wpforo.com/docs/root/getting-started/forum-page/wpforo-shortcodes/