Creating two layout for the same CPT
-
Hi!
Abstract:
I want to create a different layout for a CPT which already has a single.php.The case:
I have a Custom Post Type ‘Performances’. It has a Custom Field ‘Pictures’. I have a single-performance.php, to show all the information about a ‘Performance’.
I also created a ‘Gallery’ page, which has an ACF Field: Relationship (with multiple values). In this Gallery page i list the ‘Performances’ featured image, and title, which are set in the ACF Relationship field.
Now they are links to the ‘single-performance.php’, but i want to show just the Pictures of the ‘Performance’ if they click on them in the Gallery page, but i don’t find a solution for that.
Any advice?
Thanks: Kolos
- The topic ‘Creating two layout for the same CPT’ is closed to new replies.