Is there a method t...
 
Notifications
Clear all

Is there a method to display X number of recent topics in a specific Forum?

3 Posts
2 Users
0 Likes
3,282 Views
Curtis
(@cbisel16)
Member Customer
Joined: 8 years ago
Posts: 60
Topic starter  

Question:

Is there a way via a shortcode or widget etc. to display "x" amount of the latest wpForo forum topics from a specific forum only in a place on my website of my choosing?

 

PROBLEM:

I am using wpForo inside of the Membership area of my website, and I would love to use a separate wpForo forum to be where I post all of my latest news topics about the membership area for my members  — kind of a "latest updates" news area. 

What I would love to be able to do is when people login to the membership, and it takes them to the dashboard page (first page they see when they login), at the top of the page I'd like to have a block of information that lists, say the last 5-10 forum post topics, from JUST this single "latest updates" news forum, that members could click on and it would take them to the actual forum page.

 

ALMOST A SOLUTION:

Your "wpForo Recent Topics" widget almost does this for me perfectly — using a Wordpress page builder I can place this widget at the top center of my dashboard page. But, there currently isn't an option to select which forum I want it to pull from exclusively. Instead, it lists the latest topics from ALL forums.

 

Thanks!

 


   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 9 years ago
Posts: 4171
 

I'd suggest using wpForo forum shortcodes. More info here:

https://wpforo.com/docs/root/getting-started/forum-page/wpforo-shortcodes/


   
ReplyQuote
Curtis
(@cbisel16)
Member Customer
Joined: 8 years ago
Posts: 60
Topic starter  

Thanks @tomson.

I tried using this shortcode before, which does output my topics from a given forum:

[wpforo item="forum" id="4"]

 

But 2 issues came up for me:

1) the shortcode displays way more than just the topics. It displays everything else on the forum page including the sidebar and anything else that's usually there like navigation.

2) I don't see any additional shortcode information on the info page you linked to that would filter down the results. The shortcode when I test it is displaying about 20 of the latest topics — way too many for my "dashboard" where I just want to show the latest few to keep it simple, short and not requiring a lot of scrolling down the page.

 

Messing around with CSS, I believe I can probably solve #1 above by using "display" and "none" on all of the extra DIV's I don't need to display. But for #2, are there are there any additional shortcode filters I can add to get it to only display like 5 or so topics?


   
ReplyQuote
Share:
Scroll to top