Support Forum
Saki... last I knew the recent posts widget was broken for SPv5. Andy told me that the widgets and template tags will be functional closer to the final release as the main code is ever changing and can easily break the template tags and the widget. Seems reasonable as the code IS changing often.
Can I grab the plugin template code below and throw it in a theme template to output it on a page? Maybe there's more to it.
sp_RecentPostList('show=10', __sp('Unread and recently updated topics'));
Where are the functions in the plugin that I might put in my theme functions?
in the template tags plugin... look in the main plugin file and you will see all the available ones... as Lee points out, all are not working yet, but I believe the recent post one is..
Visit Cruise Talk Central and Mr Papa's World
The sp-recent-posts-widget.php is still using 'sp_recent_posts_tag' on line 37 which should be 'sp_RecentPostsTag' so will error out if used.
There is also an issue with the '&icon=' in the 'sp-RecentPosts-tag.php' which causes a problem. So I deleted it from the line and it at least shows the right arrow and the Vtip after doing so.
Hopefully you will get a chance to take a look at the 'template-tags' plugin soon and see what works as expected and which don't.
the plan is to go beta at end of October... we will be done with the template tag coding before going to beta...
and frankly, stuff like this is why we recommend not running the 5.0 alpha on a production site... but we will get to it very soon...
Visit Cruise Talk Central and Mr Papa's World
There is a Simple:Press plugin that adds a Widget which you can add to your site that shows recent posts.
The info on how to add it is here.
1 Guest(s)