Notifications
Clear all

wpForo 1.x.x [Solved] Tags in alphabetical order

4 Posts
2 Users
0 Reactions
1,056 Views
Posts: 11
Topic starter
(@daver)
Eminent Member
Joined: 5 years ago

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

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

Eminent Member
Posts: 11
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: 4476
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @daver,

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