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
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(); ?> <?php $result = perch_content_custom('Products', array( 'skip-template'=>true )); echo $result['title']; ?></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.
Want to reply to this thread?Login with Perch