Support Forum

Show last 5 SP forum posts on WP main page

SD Scott Donihoo
Scott Donihoo
Member

When I was running SimplePress 4.4.5, I was able to use a line of code that would show the 5 most recent forum posts with activity on the sidebar of my home page.  I did so by using this code:

<?php sf_latest_posts(); ?><?php */?>

Has that changed with v5.x?  If so, what is the new code? I have searched on the forums, but maybe I’m not searching for the correct keywords.  Any help is greatly appreciated. Thank you.

5 Answers

New Answer

BR Brandon
Brandon
Member

Yes it is done differently in SP 5.x. There is a widget or you can add the code manually. To do that you need the Simple:Press Template Tags plugin.
Here are the available template tags that come with it. http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/

The code to use for recent posts is here. http://codex.simple-press.com/codex/plugins/our-plugins/the-template-tags-plugin/template-tag-recent-posts/

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

SD Scott Donihoo
Scott Donihoo
Member

We must have been writing posts at the same time.  I will try this and let you know how it works.  Thank you.

SD Scott Donihoo
Scott Donihoo
Member

I used the widget and it worked flawlessly.  Thanks for pointing me in the right direction!