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] Tags in alphabetical order

4 Posts
2 Users
0 Reactions
1,735 Views
Posts: 11
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
(@daver)
Eminent Member
Joined: 7 years ago
[#7818]

Is it possible to show tags in alphabetical order on "widget" and "all tags" page?


Topic Tags
3 Replies
Sofy
Posts: 5777
 Sofy
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
(@sofy)
Support Team
Joined: 8 years ago

Hi @daver,

I'm sorry, but there is no such feature. You should use the js code like this one. Add the code in your active theme js file:

jQuery(function() {
jQuery(".wpf-widget-tags li").sort(function (a, b) {
return (jQuery(a).text() ) > (jQuery(b).text()) ? 1 : -1;
}).appendTo('.wpf-widget-tags');
});

1 Reply
(@daver)
Joined: 7 years ago

Eminent Member
Posts: 11
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
Posted by: Sofy

Hi @daver,

I'm sorry, but there is no such feature. You should use the js code like this one. Add the code in your active theme js file:

jQuery(function() {
jQuery(".wpf-widget-tags li").sort(function (a, b) {
return (jQuery(a).text() ) > (jQuery(b).text()) ? 1 : -1;
}).appendTo('.wpf-widget-tags');
});

Do you add this to your theme's  js or the wpforo plugin js?


Sofy
Posts: 5777
 Sofy
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
(@sofy)
Support Team
Joined: 8 years ago

Hi @daver,

Yes, we've checked this code. It works in our case. 


Share: