Dynamically set WordPress page title

Viewed 15

When using Timber, is it possible to dynamically set/change/edit the page title from a PHP template file? For example...

$context['post'] = new Timber\Post();

$context['post']->post_title = "my custom page title";

It's more complicated editing the page title in the functions.php file, as I've see elsewhere.

0 Answers
Related