I’m hoping this is an easy question, but not so sure?
I’ve bee trying to display categories in columns (easy), and also alphabetically by column from top to bottom like a phone book layout (not so easy).
Here’s what I currently have:
{exp:channel:categories channel="resources" parent_only="yes" style="linear"}
<div class="one-fourth directory">
<a href="http://{path=resources}">{category_name}</a>
(
{exp:query sql="
SELECT
COUNT(entry_id) AS total_entry_count
FROM
<SQL_Entry>
WHERE
cat_id = {category_id}
"}
{total_entry_count}
{/exp:query})
</div>
{/exp:channel:categories}While this sort of works, it will display the items in alphabetical order from left to right (rows) and not top to bottom (columns), which is expected.
I tried the “Splitter” plugin but it didn’t work for me and the same results were produced.
If you know of a way your help is greatly appreciated!