AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

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

5 Posts
2 Users
1 Reactions
835 Views
Posts: 15
 Max7
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@max7)
Eminent Member
Joined: 2 years ago
[#62252]

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: 10746
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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: 2 years ago

Eminent Member
Posts: 15
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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: 3 months ago

Support Team
Posts: 10746
Robert
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 2 years ago

Eminent Member
Posts: 15
Robert
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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.


Share: