Categories

Featured templates

Joomla 2.5.x. How to sort K2 tags

Norman Fisher June 25, 2012
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial is going to show you how to sort the default gallery tags on your Joomla 2.5 template.

  1. On your FTP server go to the templates\theme_###\html\com_k2\templates\portfolio\ folder.
  2. Open a category.php in any PHP editor.
  3. Look for the following line using Ctrl + F:
    $tags = array_unique($allTags);
  4. Add a new function right under that line:
  5. rsort($tags);

    in order to sort the tags in the reverse  alphabetical order or

    sort($tags);

    in order to sort the tags alphabetically

  6. Save the changes and check the gallery page on your site.

Feel free to check the detailed video tutorial below:

Joomla 2.5.x. How to sort K2 tags

Responsive Joomla Themes
This entry was posted in Joomla! Tutorials and tagged joomla, k2, sort, tags. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket