Notifications
Clear all

Script [Solved] Previous/Next Topic links not following custom topic order

5 Posts
2 Users
1 Reactions
154 Views
Posts: 15
 Max7
Topic starter
(@max7)
Eminent Member
Joined: 6 months ago

The code featured here ( https://wpforo.com/community/general-discussions/sticky-posts-need-them-in-a-certain-order-regardless-of-current-posts/) works great. However, the Previous/Next Topic links at the bottom of each topic do not follow my custom topic order. They assume the topics are still in their original creation order. Is it possible to get those links to follow my custom topic order?

4 Replies
Robert
Posts: 10600
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @max7 ,

I'm really sorry but this script cannot be further improved. It was just a quick solution for a few sticky topics. As a side solution you could increase the number of topics par page to avoid this issue. I assume you have 30 sticky topics and you can show them all on the first page.

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

Eminent Member
Posts: 15

Hi @robert ,

Ok I understand. They are all displaying on the first page which is great. I'm going to try to hide the Previous/Next topic links so it won't cause confusion. If you know what css would do that, that would be helpful.

I also want to hide the Forum jump too as we only have one forum in each board.

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10600

@max7 ,

You can use some code snippets plugin and put this php code to remove the section with forum jumping and prev/next topics links as well:

remove_action( 'wpforo_post_list_footer', 'wpforo_topic_footer' );
 Max7
(@max7)
Joined: 6 months ago

Eminent Member
Posts: 15

Hmm, I tried that snippet but it didn't seem to do anything.

I then tried adding the following to the Custom CSS code and it successfully hid the section:

#wpforo #wpforo-wrap .wpf-topic-navi {
  display: none;
}

I learned about similar css code in other posts in this support forum. It's so nice that this plugin has such detailed references for all the different sections.