Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Offline
#14 2021-07-22 22:00:04
- Myusername
- Member
- Registered: 2019-12-12
- Posts: 162
Re: ?pg=
Something like that, maybe?
<txp:php>
$p = parse('<article::custom section="articles" pageby="50" pgonly />');
for ($counter = 1; $counter <= $p; $counter++) {
echo '<loc>?pg=' . $counter . '</loc>';
}
</txp:php>
Result:
<loc>pg=2</loc>
<loc>pg=3</loc>
<loc>pg=4</loc>
<loc>pg=5</loc>
Last edited by Myusername (2021-07-22 22:00:51)
Offline
Re: ?pg=
Myusername wrote #331091:
Something like that, maybe?
<txp:php>...
Result:
<loc>pg=2</loc>...
Nope:( it’s still parsing the sitemap section.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline