Hi there,
I would like to add a Layer Slider to the “Category Page” of Portfolio entries – but would like to display a different Slider for different Categories.
For example: Category Villas dispalys Slider #1, Category Apartments displays Silder #2 , please let me know which file needs to be changed.
I would also like to change the layout of the category page – which file do I have to edit?
Looking forward to your reply.
Best ,
Darneson
Hey Darneson!
You’ll need to edit archive.php, you could use get_queried_object
to get the current category and perform a conditional:
http://codex.wordpress.org/Function_Reference/get_queried_object
Best regards,
Josue
Hi Josue,
thank you for your reply and your help.
It was the taxonomy-portfolio_entries.php which I was looking for not the archive.php – but what you have suggested for the conditional loading of the Slider worked.
Thank you for your help – all solved!
regards