Support Forum

Recent forum posts on page?

UN
Unknown
Member

Hello!

I have just installed the template tags and recent posts widget, and I was wondering if it’s possible to include a list of recent forum posts inside a WordPress page (just like you would use a shortcode, so not hard coded). This would be nice to use on the overview on my dashboard page.

Thanks,
Debbie

7 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

We do not currently have a shortcode in place for that.

If you have a plugin installed that allows for using php in posts then you could use the template tag. Or – writing a shortcode routine to call it should not be that difficult.

UN
Unknown
Member

Alright! Thanks! I think I’ll just write a shortcode routine to do the trick then. Deciding what parameters I want and linking a shortcode to that should be able to do what I want. Thanks for the quick reply.

MP Mr Papa
Mr Papa
Member

If you write a shortcode and want to share the code, we could probably add it to the plugin…  just short on time to do it ourselves…

RN Ralf Neugebauer
Ralf Neugebauer
Member

Hi, same problem: I installed and activated the template tags plugin, but the shortcode doesn’t render on a page or in a widget, see screenshots:

http://www.evernote.com/shard/s1/sh/8b973012-5c19-43c6-97f4-2745d38fd093/470db1b6b787bd2a8b42731125c2c34b

http://www.evernote.com/shard/s1/sh/a8e0e661-7387-4478-8be0-2cc91002aff9/60e7aebe106114cba90f6d5548c1b8aa

I only see the source code of the shortcode.

What can I do? Are there any requirements?

 

Thanks and bye

Ralf

BR Brandon
Brandon
Member

Some WordPress themes don’t support shortcode in text widgets. That might be the case with yours. If so you would need to add this to your functions.php file:

add_filter('widget_text', 'do_shortcode');

There is a recent posts widget included in the Template tags plugin. You could try it too. It does have a lot of options so you may want to read the codex article on it here.

http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/recent-posts-widget/

RN Ralf Neugebauer
Ralf Neugebauer
Member

Thanks for your fast answer. But if I said, I use many other shortcodes from different plugin developers. all works fine. 

This can’t be the reason for this misbehavior, or?

Bye

Ralf

BR Brandon
Brandon
Member

There is a lite difference between using php and the shortcode.

Give this a try  

[ sp_recent_posts ]

or

[ sp_forum_home_link ]