N
N
NeveR3d2018-11-20 15:59:35
DLE
NeveR3d, 2018-11-20 15:59:35

Numbering of all news. how to do it?

Please tell me how to make the numbering work in custom. Now only works in short
show.short.php
Find:
$news_count ++;
Paste below: in template run
$tpl->set( '{post-custom-id}', $news_count );
{post-custom-id}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Tutubalin, 2018-11-20
@Kennius

Instead $news_count ++;of using, you need to $global_news_count ++;
insert below:
Should work in both show.short.php and show.custom.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question