Heya,
Can I use a shortcode like [sp_latest_posts] to show the latest posts to a specific forum?
If so, how does this work? (I checked the docs but I’m still kinda lost :p)
Thanks!
Heya,
Can I use a shortcode like [sp_latest_posts] to show the latest posts to a specific forum?
If so, how does this work? (I checked the docs but I’m still kinda lost :p)
Thanks!
You could really do with our Template Tags plugin (https://simple-press.com/downloads/template-tags-and-widgets-plugin/). One of the items in that is a widget for just this (see our footer area where we use this) but the same thing is also available as a template tag or short-code.
For documentation on the Template Tags plugin please see: http://simple-press.dev/documentation/codex/plugins/our-plugins/the-template-tags-plugin/
Thanks for your fast reply!
I’m in fact using the Template Tags plugin, and I pasted the shortcode in my post, but I just remembered shortcodes are, of course disabled in posts, haha.
How do I get, say [sp _ newest _ topics] to show only the newest post from a particular forum?
Cheers!
Well – you can pass in an argument of ‘forumIds’ and set that to a comma delimited list of the forum IDs you want to show.
I am not that familiar with shortcodes myself (never personally use them!) so I might need to ask @mr-papa if you can’t get this working… but i am assuming you DO know how to use shortcodes! I am just a little unsure whether the argument name is ‘forumIds’ or ‘forumids’ (note the capital or lower case ‘i’). One of them should be right!
[[[sp_newest_topics forumids=”xxx”]]]
where xxx is the comma separated list of forum ids you want to use..
I assume that means it worked as you wanted, Good news and you are welcome, Thanks for the update.