[resolved] Auto Increment Custom Template based Widget order (2 posts)

  1. katart17
    Posted 3 years ago #

    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


  2. sanchothefat
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Spots
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic