Support » Plugin: Spots » [Plugin: Spots] Auto Increment Custom Template based Widget order

  • Resolved katart17

    (@katart17)


    I’ve created a Custom Template and would like to be able to add an integer (starting at 1) to each Spot/Widget. I know how to count the number of active widgets, but I can’t figure out how to Auto Increment a number based on the number of widgets.

    I can’t use Post IDs for my script. It needs to be an integer starting at 1.

    Any ideas? Thanks

    http://wordpress.org/extend/plugins/spots/

Viewing 1 replies (of 1 total)
  • Plugin Author Robert O’Rourke

    (@sanchothefat)

    This sounds like it’s not specific to spots so you’ll have better luck on http://wordpress.stackexchange.com/ or in the general forum.

    Off the top of my head you should look through the widget factory class in wp-includes/widgets.php to see if there’s a filter on the widget output loop that you can hook in to.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Spots] Auto Increment Custom Template based Widget order’ is closed to new replies.