1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

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

1383 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+1 more
wpCanyonThemes
says

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 :)

1096 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Beta Tester
  • Collector Level 2
+5 more
Gareth_Gillman
says

Exactly what I thought, cheers

by
by
by
by
by
by