Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Recent forum posts on page?
Avatar
Debbie
Guest
Guests
Mar 3, 2012 - 4:01 pm

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

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 3, 2012 - 5:24 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Debbie
Guest
Guests
Mar 3, 2012 - 6:39 pm

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.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 3, 2012 - 7:29 pm

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...

Avatar
Ralf Neugebauer
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 9:05 pm

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/.....1125c2c34b

http://www.evernote.com/shard/.....5548c1b8aa

I only see the source code of the shortcode.

What can I do? Are there any requirements?

 

Thanks and bye

Ralf

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 9:19 pm

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/.....ts-widget/

Avatar
Ralf Neugebauer
Rookie
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 9:21 pm

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

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 10:02 pm

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

Give this a try  

[ sp_recent_posts ]

or

[ sp_forum_home_link ]
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625