Forum

Thread tagged as: Blog

Page Titles

If a user filters my Blog by date. How can I show the date in the 'Page Title' I can do it with the categories just can't figure out how to do it with the year?

This is my Category page title code:

'title' => perch_blog_category(perch_get('cat'), true),

James Tedder

James Tedder 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What does your URL query string look like at that point?

/news/archive.php?year=2014

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can use perch_get() to get values fem the query string.

'title' => 'Posts for ' . perch_get('year'),