We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question, Problem

List Detail page title


I'm using list and detail pages and I'm wanting to pull the name of each detail page into the page title.

I have currently been using this code in the page template for list detail pages.

<title><?php perch_pages_title(); ?> 
    $result = perch_content_custom('Products', array(

echo $result[0]['title'];

The problem is that it is only taking the title from the first detail page in the list so when I'm on another detail page it will always show the title of the first detail page, I need it to show the name of whatever detail page you're on.

Also when I'm on the list page I only want to show the page title but it is also showing the first detail page title.


Peter Meenagh

Peter Meenagh 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to use the same filter as you do when displaying the main item.

Great thanks for that works perfectly now.