Notifications
Clear all

[Solved] Custom sticky topics order function issue if topics list extends beyond one page

6 Posts
2 Users
0 Reactions
549 Views
Posts: 15
 Max7
Topic starter
(@max7)
Eminent Member
Joined: 8 months ago

The custom sticky topics order function, provided here, works great! However, if the number of topics grows beyond one page, one of the early topics gets dropped to the second page. I have this topic ID order, 3, 4, 5, 6, 7, 9, 11, 12, 13, 14, 15, and topic 4 suddenly was pushed to the second page once I added an 11th topic. Then when I changed topics per page to 15, the order was good again.

5 Replies
Sofy
Posts: 5322
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

Please keep the value of the "Number of Topics and Posts per Page" option more than the number of IDs. You can manage it in the wpForo Settings.

For more information, refer to this guide: https://wpforo.com/docs/wpforo-v2/settings/display-topics-posts/#number-of-topics-and-posts-per-page

3 Replies
 Max7
(@max7)
Joined: 8 months ago

Eminent Member
Posts: 15

@sofy I wanted to provide more information as to when exactly this problem happens. When I come into the forum from the top, it has the problem, showing "Load More Topics" with topics being out of order. However, if I go into any topic, and then click the forum in the breadcrumbs (in our case when I click "Our Forum" in Home > Forum > Our Forum > Topic C), then it properly loads all the topics without the "Load More Topics" and they are in the correct order as designated in my code snippet. I hope that helps narrow down where the underlying problem might be.

 Max7
(@max7)
Joined: 8 months ago

Eminent Member
Posts: 15

@sofy I figured out it is two different URLs. Since we only have one forum in this board right now, the top level Home page (breadcrumb only showing the house symbol) has the same topics as the forum page, so I thought they were the same. Once I noticed this, I then looked in settings and found "Display Forums" > "Threaded Layout - Number of Recent topics". I bumped that up to 30 as well and now it works as desired. 😀 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 5322

@max7 

Thank you for letting us know. Glad to hear that the issue is solved.

We're going to mark this thread as resolved. Feel free to open a new topic if you have further questions.

Posts: 15
 Max7
Topic starter
(@max7)
Eminent Member
Joined: 8 months ago

Just noticing this now as I wasn't subscribed to my post. Ok I bumped it up to 30 (I only have 12 topics currently) for both settings and that seemed to resolve the problem, however when I later went back into my site, it shows them out of order again, with a "Load More Topics" link at the bottom. When I click that, it shows them all, but still out of order. Is there something else I'm missing?