Forum

Thread tagged as: Question

page title tag question

I've used the code below to add content to page using a template. I need to drag content from this template (eg the title of the page) into the <title> tag of my page, is this possible?

<?php

perch_content_custom('Vacancy Content', array(
      'page' => '/vacancies/index.php',
      'template' => 'vacancy_content.html',
      'filter' => 'slug',
      'match' => 'eq',
      'value' => perch_get('s'),
      'count' => 1,
    ));

?>
David Lee

David Lee 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Sure. Create a template with just your title tag, and then set that new template using the template option.