Support Forum
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.
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/.....gs-plugin/
The code to use for recent posts is here. http://codex.simple-press.com/.....ent-posts/
For the widget is here. http://codex.simple-press.com/.....ts-widget/
I just found a wiki page with a bit of different coding, but it still doesn't work. Here's the link:
http://wiki.simple-press.com/p.....late-tags/
And here's the code that I tried:
<?php sf_latest_posts(5); ?>
I don't think it makes any difference as 5 is the default. So if anyone has any suggestions, let me know.
good to hear! thanks for the update!
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)