Notifications
Clear all

[Solved] Sub-Forum under Category (Category -> Forum -> Sub-Forum)

6 Posts
2 Users
0 Reactions
223 Views
HighscoreDigital
Posts: 31
Topic starter
(@highscoredigital)
Trusted Member
Joined: 6 months ago

In my Category I have a bunch of forums. Some forums each have subforums. Still, on the frontend the subforums don't look like subforums, they have the same rank as all other forums (see the screenshot).

Can anyone tell me how I can change that? I want the user to see that these subforums ARE subforums of specific other forums.

Thank you for your help!

5 Replies
HighscoreDigital
Posts: 31
Topic starter
(@highscoredigital)
Trusted Member
Joined: 6 months ago

Additionally I want to change the way my forums are sorted.

I actually sorted them manually in the backend, but in the frontend it is still sorted with the forum ID (as you can see in the screenshot).

Can you help me with this too?

BlackRaz
Posts: 406
Admin
(@blackraz)
Contributor
Joined: 7 years ago

Hi  @highscoredigital 
If you want to use the hierarchical forum tree, you need to change the forum layout to something other than the threaded layout. The threaded layout is designed for thread-based forums, and the forum hierarchy is not necessary for the traditional layout design.
You can change the forum layout by editing the parent category form inside the dashboard.
https://www.youtube.com/watch?v=5dVsCiSnpjQ

1 Reply
HighscoreDigital
(@highscoredigital)
Joined: 6 months ago

Trusted Member
Posts: 31

Hi @blackraz 

I would really like to stay with the thread-based design.
Is there an option to change the forum ID of each forum? That would kind of solve the problem.

Thanks!

BlackRaz
Posts: 406
Admin
(@blackraz)
Contributor
Joined: 7 years ago

@highscoredigital 
You can add this snippet of code and replace the IDs with your own.
https://wordpress.org/plugins/code-snippets/

add_action( 'wpforo_forum_list_threaded_layout', function(){
	return [32,2,25,31,8,22,24,23,33,34,35,27,9];
} );
1 Reply
HighscoreDigital
(@highscoredigital)
Joined: 6 months ago

Trusted Member
Posts: 31

@blackraz Thank you, that's what I wanted 👍