Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2020-10-05 15:08:13

etc
Developer
Registered: 2010-11-11
Posts: 3,940
Website

Re: How to get at the top the most updated category (of a category-list)?

maverick wrote #324481:

It’s too bad there isn’t a simple way for categories to access publish dates. (If only the world was perfect :-D)

Not sure for the world, but txp (4.8.4) tends to perfection:

<!-- get a list of 'recent' categories -->

<txp:article_custom category fields="Category1, Category2" sort="MAX(Posted) DESC" break="," trim replace>
    <txp:category1 />,<txp:category2 />
</txp:article_custom>

Offline

Board footer

Powered by FluxBB