Forum

Thread tagged as: Question, Blog

Blog list page number in title

When using pagination for blog listings how do you get the page number into the meta title tag.

I want it to read like <title>Page 2 of articles for xyz</title> instead of <title>Articles for xyz</title>

The purpose is to prevent SEO reports from flagging duplicate page titles if I just left it as <title>Articles for xyz</title>

Neil Duddridge

Neil Duddridge 1 points

  • 1 year ago
Drew McLellan

Drew McLellan 2339 points
Perch Support

You can just read it in from the URL.

echo intval(perch_get('page'));