Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-04-06 22:52:22
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
pages
using this code:
<txp:php>
echo safe_count('txp_category', "type='article'") - 1;
</txp:php>
how would i change it in order to show total number of pages?
Last edited by Ruhh (2008-04-06 22:52:56)
<txp:Ruhh />
Offline
Re: pages
I’m assuming you mean articles:
echo safe_count('textpattern', 'Status = 4');
But if you really mean page templates:
echo safe_count('txp_page', 'user_html != ""');
Offline
#3 2008-04-07 03:18:34
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: pages
ah, that was helpful! one last thing, how about the counting of total comments?
<txp:Ruhh />
Offline
Offline
Pages: 1