I am building a wordpress theme using a Jquery slider, but slightly stuck with some custom php.
Each slider image has a custom id e.g. featured-slider-one, featured-slider-two etc
How can I do this in wordpress? Can I use the php count function or would that not work?
Thanks in advance
Add $count = 0; before the loop.
Add $count++ at top inside the loop.
And then echo it in the id part.
Did it numerous times
- Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
- Open a support ticket if you would like specific help with your account, deposits or purchases.
- Item Support by authors is optional and may vary. Please see the Support tab on each item page.
Most of all, enjoy your time here. Thank you for being a valued Envato community member.