Support Forum

Problems with Recent Posts

CH Chris Hustad
Chris Hustad
Member

Hello,

I have pages setup in WordPress to display recent articles and recent forum posts.

I’m using the following code to display the newest topics from simple press for EACH forum and page (So each page has it’s own unique forum in SP).

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

Here is the page that displays this:

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

The problem is Forum ID 3, which is parenting tips forum…has 3 topics.  But the page is only displaying one?

Here is that forum:

http://www.werejustparents.com/forum/parenting-tips-1/

 

Any idea why it’s not pulling all of the topics from that forum?

62 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

sorry – no code there…

if you just pasted in php code then it will probably strip it. You need to paste it in and then  carefully highlight it and then use the syntax button – right, top toolbar.

And I think I need to see your code…

CH Chris Hustad
Chris Hustad
Member

I added spaces before sp and after ’10’ so it will display.

 

[ sp_newest_topics forumIds='3' itemOrder='T' beforeTopic='' listTags='0' limit='10' ]
YS Yellow Swordfish
Yellow Swordfish
Member

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.

YS Yellow Swordfish
Yellow Swordfish
Member

You’re welcome. And I apologise for the problem.

CH Chris Hustad
Chris Hustad
Member

For the record, our recent posts in our sidebar isn’t working either.  Not showing the most recent posts.

The code:

[ sp_newest_topics itemOrder=’T’ beforeTopic=” ]

YS Yellow Swordfish
Yellow Swordfish
Member

There are no known problems with this nor have there been for a very long time. Can you exoplian to me what you are seeing in detail please?

MP Mr Papa
Mr Papa
Member

you cannot use camel case in shortcodes (WP rule)…  so itemOrder should be itemorder…  beforeTopic would be beforetopic…

CH Chris Hustad
Chris Hustad
Member

I think I might’ve been confusing on how the sidebar is treating “NEW”.  I got confused thinking of someone comments on a topic….it would be back to #1.  But it’s only going by the timestamp of the thread start.

So in other words….my bad on that.

Thanks for the syntax stuff Papa.

CH Chris Hustad
Chris Hustad
Member

My recent posts from the forum on the sidebar is outdated…it’s not showing the most recent posts either.  Sometimes it works, sometimes it doesn’t….right now it doesn’t.

Here is the code:

[ sp_newest_topics itemorder=’T’ beforetopic=” ]

 

 

MP Mr Papa
Mr Papa
Member

can you elaborate on what’s not working? do you have a link to your site?

also, no caching plugins, right?