The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. katart17
    Posted 4 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 4 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