Wordpress: Different Image Rotator on every page
The situation:
- Wordpress based website for Veterinarian clinic
- Image rotator on frontpage, separate header image attached to every page
The desired situation:
- Image rotator with several images on every page
Currently it is possible to couple several images with a page, in the backend they are shown in the "Gallery". I would like to show these images in the rotator.
Before I engage in writing my own plugin to d开发者_高级运维o this my question:
Is there a plugin available that can rotate several images on every page?
There are a few ways to do this.
- Using your current image rotator, you can create templates for your new pages (page-your-slug.php) and add different images to the rotator on each template file. These are created it your theme folder. Read more here.
- Second option is to use the is_page() function. Using that you can write and if statement to display the different images. if(is_page('your_page')) { images }, rinse and repeat.
- 3rd option is assuming that you want this to be more dynamic and changeable. Install the attachments plugin. this will allow you to upload a variety of images to each page (or post), which you can then loop through in your slider - this method is probably the best.
Hope this helps.
精彩评论