Two single.php files?

Question

I have a custom post type “people”. For each person, I can enter the following custom fields: “address”, “occupation” and “pictures”.

In the single-people.php I display the address and the occupation. In addition, this single template contains a gallery button – when the website user clicks on it I want to takes the user to a separate page where only the pictures of the person he just looked at are displayed.

How do I achieve that? I cannot just create a second single.php file, right?

0
, Kent Miller 7 years 2014-04-01T10:58:14-05:00 0 Answers 88 views 0

Leave an answer

Browse
Browse