Support Forum

Problems with Recent Posts

62 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Yet – curiously – if I open up your forum front page, the list of new posts below the group/forum listing is correct – and this uses exactly the same data population routine as the widget.template tag.

Which suggests to me something amiss with the sidebar code you are using. Is this short-code placed in a widget? Direct;y into the theme sidebar template? Or what? Have you tried using the SP widget for this instead of the short-code?

CH Chris Hustad
Chris Hustad
Member

Yes, I was using shortcode with a widget.

The reason I didn’t use the SP widget is I wanted it to link to the topic rather then most recent post in the topic, for SEO reasons.

I just used the widget for now so it will display properly.  That’s odd that different people are getting different results for the recent posts using the shortcode.  My associates were seeing the same as me, weird.

 

 

CH Chris Hustad
Chris Hustad
Member

Yellow Swordfish said
Then I think the problem is our fault – my apologies – but hopefully a fix will on its way to you at the end of this week.
Basically, the function at the end of all this was written to accept an array of forum IDs and not a comma delimited list. And that was wrong as it should have catered for both. I don’t think you can send it as an array using a WP style shortcode (whereas you can with a template tag) but this should work after the update all being well.

By any chance is this in the recent upgrade of SP?

YS Yellow Swordfish
Yellow Swordfish
Member

In 5.3.2 release – yes

I can taker a look at the short code but surely you can achieve the same data etc.,  with our widget can you not?

CH Chris Hustad
Chris Hustad
Member

This is for our Pages (not in widget area), so I need to use shortcodes.

MP Mr Papa
Mr Papa
Member

or put it in the page template file or use a plugin that allows you to use php in pages/posts… couldnt live without the latter… ;)

CH Chris Hustad
Chris Hustad
Member

Do you want to help with an alternative since your short codes don’t work?

I don’t know what you’re referring to for an option.

 

MP Mr Papa
Mr Papa
Member

there will be an update to the template tags plugin that should correct this… hopefully this weekend…

MP Mr Papa
Mr Papa
Member

recent posts wasnt even touched in the update…  was a one line change to the newest topics tag…

CH Chris Hustad
Chris Hustad
Member

Thanks for the reply Papa, but for weeks I’ve been complaining of it not working…..Swordfish even admitted it’s a bug earlier in this post…..but it clearly doesn’t work.

Can I PLEASE get some help on this?

 

MP Mr Papa
Mr Papa
Member

yes, we both said there was an issue and that there was a forthcoming update to the template tags plugin…  That update is now available and in our testing fixed the problem we were seeing…

now you are talking about recent posts but earlier you were talking about newest topics… so I am not even sure we are talking same thing any more…  which tag are you having problems with?  recent posts or newest topics????  and was there any change when you updated?

CH Chris Hustad
Chris Hustad
Member

Let’s try this again…

Here is the code we’re using on our pages to display newest or recent (isn’t it the same?) topics from the forum in that category.

[ sp_newest_topics forumIds=’3′ itemOrder=’T’ beforeTopic=” listTags=’0′ limit=’10’ ]

Initially, it only displayed one topic, no matter how many topics there were in the forum category.

NOW, since the update, it displays more but they’re displayed multiple times.  You can see it here:

http://www.werejustparents.com/tips/

I’m not sure what else you need that hasn’t already been explained.

Thanks

MP Mr Papa
Mr Papa
Member

topics are different than posts. obviously…  we have recent post and newest topics…  at least that is our terminology…

been here before too, but you cannot use camel case in the shortcode – wp limitation…  itemOrder needs to be itemorder, beforeTopic needs to be beforetopic, llistTags needs to be listtags, etc…

I dont see multiple, repeated newest topics on that page…  and if you had one topic with more than one post that was in the recent list, it would show twice, but pointing to different posts…