Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-01-18 10:07:15

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

display articles only from category1

all my product articles are saved under two different categories. but i would like to output articles associated only to category1. this code displays articles associated to category2 as well.

<txp:article_custom category='<txp:category />' form="list" wraptag="div" break="div" class="cat" limit="90" sort="Title asc" />

Offline

#2 2017-01-18 10:14:17

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: display articles only from category1

If you are using 4.6, try with match="Category1" attribute:

<txp:article_custom category='<txp:category />' match="Category1" form="list" wraptag="div" break="div" class="cat" limit="90" sort="Title asc" />

Offline

#3 2017-01-18 10:26:18

Gallex
Member
Registered: 2006-10-08
Posts: 1,289

Re: display articles only from category1

perfecto!

Offline

Board footer

Powered by FluxBB