Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-28 05:34:16

scdoody
Member
Registered: 2006-10-18
Posts: 129

Issues with article limit parameter

On my main page, I have one main area (A) that displays the latest articles from all categories except for one (ideas). On the same page, the articles from the Ideas categories are displayed in a separate area (B).

I use the following line of code to limit area A to display only the latest 4 articles: <txp:article limit=“4” />

The trouble with this is that area A does not always display 4 articles (for example, right now it is only displaying 2 articles) because it counts articles categorized as Ideas in its limit=“4”.

So – how can I set area A to display the latest 4 articles but NOT count articles from the Ideas category in its count?

Thanks!

Offline

#2 2006-10-28 06:10:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Issues with article limit parameter

You’ll have to use either article_custom or perhaps a plugin like chh_article_custom.

Offline

Board footer

Powered by FluxBB