Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-03 14:19:37

Darkhorse
New Member
Registered: 2006-08-30
Posts: 3

Post Articles For Category Using Offset and Pageby

Hey all, Basically I have a wallpaper site it has 4 colums per section/category on the main page.

Atm I have it just set to display four articles from the latest posts in three tables of 4 (12 posts atm on index page), This is working fine using the offset and Pageby tags see below.

<txp:article form=“test” limit=“1” pageby=“2” />

<txp:article form=“test” limit=“1” offset=“1” />

However I want to make it show 4 posts per category on the homepage eg: 4 posts (in colums) for Babe Wallpapers, 4 Posts for Car Wallpaper ect ect….

I have tried pretty much everything I can think of and no luck, any suggestions would be great.

ty…

Last edited by Darkhorse (2007-12-03 14:21:18)

Offline

#2 2007-12-03 14:49:06

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Post Articles For Category Using Offset and Pageby

I think you will need to use the <txp:article_custom /> tag with the “section” and “category” attributes set to what you want to display.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2007-12-04 11:13:55

Darkhorse
New Member
Registered: 2006-08-30
Posts: 3

Re: Post Articles For Category Using Offset and Pageby

thebombsite wrote:

I think you will need to use the <txp:article_custom /> tag with the “section” and “category” attributes set to what you want to display.

Worked like a charm, didn’t need the section tags, just made sure the offset was still correct and category.

Thanks mate.

Last edited by Darkhorse (2007-12-04 11:14:28)

Offline

Board footer

Powered by FluxBB