For a more precise answer, can we see the contents of boatDetails.php?
–
Chip BennettAug 20 '12 at 16:12

Hiya - unfortunately it's on client protected IP filtered server as the site is in development. I'm not sure whether it's necessary though is it? I can get the 'I'm the boat details page' title to appear on that page - and the other title tag to render on all other pages, I just want to know how to combine the two statements into an if/else...
–
V NealAug 20 '12 at 16:15

I think it can be answered generally (see my answer below), but you should always include relevant code - or, as appears is the case here, at least say that you're adding the relevant code from header.php. It just helps us understand/answer the question better.
–
Chip BennettAug 20 '12 at 16:19

Ok sorry - yes I was attempting to write it in header.php. The below solution does work - thank you - although I may need to add it to my boatDetails.php template itself as the boat info is fed via xml and therefore needs to be dynamically generated from the content pulled in. Sorry - should have mentioned that to begin with.
–
V NealAug 20 '12 at 16:31

1

Can you clarify your question with this information, so that it can be addressed? Please explain what you're doing, where the dynamically generated content is coming from, and what specific data you want to use in the document title.
–
Chip BennettAug 20 '12 at 16:38