0

I need to put a carousel slider below menu i.e. where the content goes in... I need to have different carousel slider on different categories. Such as on books category carousel will relate to books, fashion it will relate to fashion products, etc.

Any suggestions?

1 Answer 1

0

Install Advanced Custom Fields. Create a image upload field for the category referring to their docs. Use the following code in your archive.php

// get value from a taxonomy (taxonomy = "category", id = 1)
$image_cat = get_field('field_name', 'category_1');

<?php echo $image_cat; ?> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.